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

[exporter/clickhouse] Add instrumentation scope to span attribute #17408

Closed
huynhtehoa opened this issue Jan 6, 2023 · 9 comments · Fixed by #18513
Closed

[exporter/clickhouse] Add instrumentation scope to span attribute #17408

huynhtehoa opened this issue Jan 6, 2023 · 9 comments · Fixed by #18513
Assignees
Labels

Comments

@huynhtehoa
Copy link

Component(s)

exporter/clickhouse

Is your feature request related to a problem? Please describe.

Currently, attributes such as otel.library.name, otel.library.version are not added to span attributes. Those attributes are parts of InstrumentationScope, which is provided by opentelemetry https://opentelemetry.io/docs/reference/specification/logs/data-model/#field-instrumentationscope

Describe the solution you'd like

It would be nice to include otel.library.name and otel.library.version in span attributes

Describe alternatives you've considered

No response

Additional context

No response

@huynhtehoa huynhtehoa added enhancement New feature or request needs triage New item requiring triage labels Jan 6, 2023
@huynhtehoa huynhtehoa changed the title Add instrumentation scope to span attribute [exporter/clickhouse] Add instrumentation scope to span attribute Jan 6, 2023
@huynhtehoa
Copy link
Author

/label exporter/clickhouse

@github-actions
Copy link
Contributor

Pinging code owners for exporter/clickhouse: @hanjm @dmitryax. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@hanjm
Copy link
Member

hanjm commented Jan 10, 2023

looks good. I think store it to resource attribute is reasonable.

@Frapschen
Copy link
Contributor

Is there some scenes need to do that? in jaeger, those attribute are include in UI:
image

@huynhtehoa
Copy link
Author

Hi @Frapschen, we are storing traces in Clickhouse to build our custom monitoring dashboards and this library info will help us filter data better. For example, we can find out the slowest libraries, the most frequently used libraries

@Frapschen
Copy link
Contributor

got it,I agree with @hanjm, I will add this to my work list. I notice that the clickhouse log exporter also have same issue, I will create new issue and fix it.

@huynhtehoa
Copy link
Author

Thank you guys ❤️

@dmitryax
Copy link
Member

dmitryax commented Feb 13, 2023

@huynhtehoa @Frapschen Please see the spec translation guidelines https://github.com/open-telemetry/opentelemetry-specification/blob/7116e72cff72a825bbb83e103c2756706d3106ee/specification/common/mapping-to-non-otlp.md#instrumentationscope . They should be mapped to otel.scope.name and otel.scope.version

@Frapschen
Copy link
Contributor

got it

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