Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display serviceName based on service tag, if available #435

Merged
merged 5 commits into from
Nov 27, 2018

Conversation

bulicekj
Copy link

No description provided.

@coveralls
Copy link

coveralls commented Nov 27, 2018

Coverage Status

Coverage decreased (-0.009%) to 74.373% when pulling cdb75a9 on service-tag into 8d43a20 on master.

@@ -97,6 +96,8 @@ export default class Span extends React.Component {
operationName
} = span;

const serviceName = Span.getTagValue(span, 'service') || span.serviceName;
Copy link
Contributor

Choose a reason for hiding this comment

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

interesting you are prioritizing tag over field.. is this common or a bug?

Copy link
Author

Choose a reason for hiding this comment

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

interesting you are prioritizing tag over field.. is this common or a bug?

This change is to visualize our indexer change (ExpediaDotCom/haystack-traces#183 in response to opentracing/specification#131). Until there's a consensus on the OT specification, we're going to override the visualized service name with service tag, if it exists

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Nov 27, 2018 via email

@LakerBaker
Copy link
Contributor

opentracing is an api not a data model specification. wouldn't you map it to service name instead of handling here? I dont see haystack participating but somehow willing to just take whatever they randomly think up.

On Wed, 28 Nov 2018, 09:32 Jason Bulicek @.*** wrote: @.**** commented on this pull request. ------------------------------ In src/components/traces/details/timeline/span.jsx <#435 (comment)> : > @@ -97,6 +96,8 @@ export default class Span extends React.Component { operationName } = span; + const serviceName = Span.getTagValue(span, 'service') || span.serviceName; interesting you are prioritizing tag over field.. is this common or a bug? This change is to visualize our indexer change ( ExpediaDotCom/haystack-traces#183 <ExpediaDotCom/haystack-traces#183> in response to opentracing/specification#131 <opentracing/specification#131>). Until there's a consensus on the OT specification, we're going to override the visualized service name with service tag, if it exists — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#435 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAD617A2dvF71HG9aAHnu0N_g7IuYY9Nks5uzb2SgaJpZM4Y2WrP .

Adrian, we were uncomfortable changing the raw data. We have an internal client who needs to "override" service name and this recent change to the spec fit our use case nicely. You have correctly pointed out the problems with this approach, and we fully expect to honor the spec when it changes.

@LakerBaker LakerBaker merged commit acb2114 into master Nov 27, 2018
@LakerBaker LakerBaker deleted the service-tag branch November 27, 2018 22:56
@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Nov 27, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants