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

mark code.* attributes as release candidate #1599

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

SylvainJuge
Copy link
Contributor

@SylvainJuge SylvainJuge commented Nov 20, 2024

Relates to #1377

Changes

Please provide a brief description of the changes here.

Note: if the PR is touching an area that is not listed in the existing areas, or the area does not have sufficient domain experts coverage, the PR might be tagged as experts needed and move slowly until experts are identified.

Merge requirement checklist

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

let's mark as release candidate first, we don't have a great way to do that yet, but you can follow pattern used in #1101

@SylvainJuge SylvainJuge changed the title mark code.* attributes as stable mark code.* attributes as release candidate Nov 21, 2024
@@ -1,6 +1,6 @@
module github.com/open-telemetry/opentelemetry-specification/internal/tools

go 1.22
Copy link
Contributor Author

Choose a reason for hiding this comment

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

[for reviewer] not related to this PR, but I had to change this otherwise I got toolchain not available error when trying to generate the changelog entry template.

Copy link
Contributor

Choose a reason for hiding this comment

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

/cc @joaopgrassi who has the most context on this

model/code/registry.yaml Outdated Show resolved Hide resolved
model/code/registry.yaml Outdated Show resolved Hide resolved
brief: >
The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`.
examples: 16
- id: code.stacktrace
type: string
stability: experimental
stability: experimental # RELEASE CANDIDATE
brief: >
A stacktrace as a string in the natural representation for the language runtime.
The representation is to be determined and documented by each language SIG.
Copy link
Contributor

Choose a reason for hiding this comment

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

brief: >
The "namespace" within which `code.function` is defined. Usually the qualified class or module name,
such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit.
examples: com.example.MyHttpService
- id: code.filepath
type: string
stability: experimental
stability: experimental # RELEASE CANDIDATE
brief: >
The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).
examples: /usr/local/MyApplication/content_root/app/index.php
- id: code.lineno
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like to consider renaming this attribute to code.line.number to be consistent with the rest of semconv and our guidance to avoid abbreviations.

Do we know if it's already used as is in any stable components in otel?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The opentelemetry-php is stable and is known to rely on some of those attributes.

I will try to exhaustively list the impacts in the rename PR

@@ -7,38 +7,38 @@ groups:
attributes:
- id: code.function
Copy link
Contributor

Choose a reason for hiding this comment

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

We should consider renaming it to code.function.name since there could be other things we'd eventually want to capture and we try to add specific property name to avoid ambiguity.

Are there any stable OTel components that rely on this name already?

Copy link
Member

Choose a reason for hiding this comment

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

@SylvainJuge I'd recommend opening a separate PR to do any attribute names, and then coming back to this PR afterwards

@lmolkova
Copy link
Contributor

I support this change.

A few things we should also update:

@SylvainJuge SylvainJuge mentioned this pull request Nov 27, 2024
3 tasks
@SylvainJuge
Copy link
Contributor Author

I have opened #1624 for the naming changes suggestions, it contains a list of all the repositories that would be impacted.

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

Successfully merging this pull request may close these issues.

3 participants