Skip to content

Apply component tag more consistently - #578

Merged
tylerbenson merged 4 commits into
masterfrom
tyler/components
Nov 15, 2018
Merged

Apply component tag more consistently#578
tylerbenson merged 4 commits into
masterfrom
tyler/components

Conversation

@tylerbenson

Copy link
Copy Markdown
Contributor

No description provided.

@tylerbensontylerbenson added type: feature Enhancements and improvements inst: others All other instrumentations labels Nov 14, 2018
@tylerbensontylerbenson added this to the 0.18.0 milestone Nov 14, 2018
@tylerbenson
tylerbenson changed the base branch from master to tyler/spring-authNovember 14, 2018 21:50
@tylerbenson
tylerbenson changed the base branch from tyler/spring-auth to masterNovember 14, 2018 21:50
tracer.buildSpan("aws.command").withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_CLIENT);
tracer
.buildSpan("aws.command")
.withTag(Tags.COMPONENT.getKey(), "aws-sdk")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the there is no real point in setting this since it is always set few lines below in SpanDecorator.onRequest(request, span); call.

parent()
tags {
"$DDTags.SPAN_TYPE" DDSpanTypes.COUCHBASE
"$Tags.COMPONENT.key" "couchbase-client"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to pull this value (and other values of this tag) into public context on an instrumentation to avoid repeating it many times.

.buildSpan(protocol + ".request")
.withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_CLIENT)
.withTag(DDTags.SPAN_TYPE, DDSpanTypes.HTTP_CLIENT)
.withTag(Tags.COMPONENT.getKey(), "UrlConnection")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider #580

@tylerbenson
tylerbenson merged commit 31b2e0f into masterNov 15, 2018
@tylerbenson
tylerbenson deleted the tyler/components branch November 15, 2018 21:02
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: othersAll other instrumentationstype: featureEnhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@tylerbenson@mar-kolya