lib/datadog/tracing/contrib/rest_client/request_patch.rb in ddtrace-1.14.0 vs lib/datadog/tracing/contrib/rest_client/request_patch.rb in ddtrace-1.15.0

- old
+ new

@@ -39,9 +39,14 @@ Tracing::Metadata::Ext::TAG_PEER_SERVICE, datadog_configuration[:peer_service] ) end + # Tag original global service name if not used + if span.service != Datadog.configuration.service + span.set_tag(Tracing::Contrib::Ext::Metadata::TAG_BASE_SERVICE, Datadog.configuration.service) + end + span.set_tag(Tracing::Metadata::Ext::TAG_KIND, Tracing::Metadata::Ext::SpanKind::TAG_CLIENT) span.set_tag(Tracing::Metadata::Ext::TAG_COMPONENT, Ext::TAG_COMPONENT) span.set_tag(Tracing::Metadata::Ext::TAG_OPERATION, Ext::TAG_OPERATION_REQUEST)