Skip to content

Conversation

@PeterFaiman
Copy link
Contributor

Motivation

The otel semantic conventions specify the names code.file.path and code.line.number for these attributes. There is no equivalent for module, but I extrapolated from code.function.name.

https://opentelemetry.io/docs/specs/semconv/code/

Solution

Rename the current attributes.

Happy to revert the change to code.namespace, since it's not actually in the spec.

The otel semantic conventions specify the names `code.file.path` and
`code.line.number` for these attributes. There is no equivalent for
module, but I extrapolated from `code.function.name`.

https://opentelemetry.io/docs/specs/semconv/code/
mladedav pushed a commit that referenced this pull request Sep 6, 2025
## Motivation

My other PR (#225) is failing CI because of clippy warnings.

## Solution

`cargo clippy --all-targets --all-features --fix`
@mladedav mladedav merged commit 4fdf560 into tokio-rs:v0.1.x Sep 6, 2025
13 of 14 checks passed
@mladedav
Copy link
Collaborator

mladedav commented Sep 6, 2025

Thanks!

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.

2 participants