-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 telemetrygen span info #24286
Labels
Comments
edwintye
added
enhancement
New feature or request
needs triage
New item requiring triage
labels
Jul 16, 2023
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Setting span kind with |
jpkrohling
pushed a commit
that referenced
this issue
Jul 21, 2023
…fo (#24303) **Description:** Remove the span attribute `span.kind` and instead set the `Kind` (which is a top level span information) directly using `trace.WithSpanKind`. **Link to tracking Issue:** #24286 **Testing:** Added a rudimentary test to ensure that `Kind` is not `Internal` which is the default when not specified. **Documentation:** None. This is probably the original intention.
This was referenced Sep 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component(s)
cmd/telemetrygen
Is your feature request related to a problem? Please describe.
Currently telemetrygen adds
span.kind
as an attribute L43 but "Span Kind" is neither a resource or an attribute and should be set separately via saytrace.WithSpanKind(trace.SpanKindClient)
instead.Also for the purpose of testing it may be useful to have the ability to set the
status.code
.Describe the solution you'd like
Update telemetrygen in worker.go so something like (at around L43)
and for the server
Then maybe hard code the status code at L68
or some alternative such as allow user inject via command line argument.
Describe alternatives you've considered
No response
Additional context
This can be easily verified using a rudimentary config locally
and running telemetrygen against it via
to confirm that telemetrygen currently produces
which has
Kind: Internal
andspan.kind: "server"
without a status code set. This caused slight confusion when we were trying to test out some tail sampling policy locally.The text was updated successfully, but these errors were encountered: