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

rename telemetry.auto.version to telemetry.distro.version and add telemetry.distro.name #9065

Merged
merged 6 commits into from
Dec 13, 2023

Conversation

zeitlinger
Copy link
Member

@zeitlinger zeitlinger commented Jul 27, 2023

@zeitlinger zeitlinger requested a review from a team as a code owner July 27, 2023 15:29
@zeitlinger zeitlinger marked this pull request as draft July 27, 2023 15:29
Copy link
Member

@mateuszrzeszutek mateuszrzeszutek left a comment

Choose a reason for hiding this comment

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

👍

@zeitlinger zeitlinger self-assigned this Dec 8, 2023
@zeitlinger zeitlinger marked this pull request as ready for review December 8, 2023 16:11
…erTest.groovy

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
@trask
Copy link
Member

trask commented Dec 12, 2023

@zeitlinger can you update the PR title? thx

@zeitlinger zeitlinger changed the title add telemetry.auto.name rename telemetry.auto.version to telemetry.distro.version and add telemetry.distro.name Dec 13, 2023
@zeitlinger
Copy link
Member Author

@zeitlinger can you update the PR title? thx

done

@trask trask merged commit 1a054a5 into open-telemetry:main Dec 13, 2023
47 checks passed
@zeitlinger zeitlinger deleted the auto-name branch December 14, 2023 11:01
elbiocaetano pushed a commit to elbiocaetano/opentelemetry-java-instrumentation that referenced this pull request Dec 19, 2023
…emetry.distro.name (open-telemetry#9065)

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
zzhlogin added a commit to aws-observability/aws-otel-python-instrumentation that referenced this pull request Feb 27, 2024
*Issue #, if available:*

In Java,` telemetry.auto.version` resource attribute is being deprecated
([PR](open-telemetry/opentelemetry-java-instrumentation#9065)).
However, We don't find any related change in upstream. It is still
[being
used](https://github.com/open-telemetry/opentelemetry-python/blob/da48e0b131ff34ff382b7d1206f71b2e31929cab/opentelemetry-sdk/src/opentelemetry/sdk/_configuration/__init__.py#L364),
so we are not going to deprecate it in aws-opentelemetry-distro for now.
And we use `aws-opentlemetry-distro` version with "-aws" post-fix to be
the `telemetry.auto.version `, which match with the [Java
implementation](https://github.com/aws-observability/aws-otel-java-instrumentation/blob/294e957afbf48e766e3be9a11638050ef3736904/otelagent/build.gradle.kts#L101).

Testing:
Tested resource attributed are generated:
Before the change:
```
"resource": "BoundedAttributes({'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.22.0', 'service.name': 'unknown_service', 'telemetry.auto.version': '0.43b0'}, maxlen=None)"
```
After the change:
```
"resource": "BoundedAttributes({'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.22.0', 'service.name': 'unknown_service', 'telemetry.auto.version':'0.0.1-aws'}, maxlen=None)"
```


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
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

4 participants