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

Update gRPC span names to match spec #152

Merged
merged 2 commits into from
Apr 10, 2018

Conversation

wkiser
Copy link
Contributor

@wkiser wkiser commented Apr 10, 2018

No description provided.

def _get_span_name(client_call_details):
"""Generates a span name based off of the gRPC client call details"""
method_name = client_call_details.method[1:].replace('/', '.')
return '{}.{}'.format(SENT_PREFIX, method_name)

Choose a reason for hiding this comment

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

FYI: The prefix (sent, recv) will be replaced by the Span.Kind (https://github.com/census-instrumentation/opencensus-proto/blob/master/opencensus/proto/trace/trace.proto#L66).

In SD exporter we will still attach the prefixes, but in Jagger and Zipkin we will just set the kind.

Here census-instrumentation/opencensus-specs#85 (not documented) but the issue is about that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Acknowledged, thanks!

@liyanhui1228 liyanhui1228 merged commit 1007659 into census-instrumentation:master Apr 10, 2018
kcooperstein pushed a commit to kcooperstein/opencensus-python that referenced this pull request Apr 23, 2018
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.

None yet

3 participants