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

feat(instrumentation): add option to overwrite otlp service name/namespace/version with env var #29583

Merged
merged 7 commits into from
Jun 12, 2024
Merged

feat(instrumentation): add option to overwrite otlp service name/namespace/version with env var #29583

merged 7 commits into from
Jun 12, 2024

Conversation

KyriosGN0
Copy link
Contributor

Changes

add the option to overwrite the following otlp attrributes
OTEL_SERVICE_NAME
OTEL_SERVICE_NAMESPACE
OTEL_SERVICE_VERSION
if one of those values is not set in as env var then a default is used (same as always was)

Context

closes #28986

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

Signed-off-by: Aviv Guiser <avivguiser@gmail.com>
@CLAassistant
Copy link

CLAassistant commented Jun 10, 2024

CLA assistant check
All committers have signed the CLA.

@KyriosGN0 KyriosGN0 changed the title add option to overwrite otlp service name/namespace/version with env var feat(instrumentation): add option to overwrite otlp service name/namespace/version with env var Jun 10, 2024
Signed-off-by: Aviv Guiser <avivguiser@gmail.com>
Copy link
Collaborator

@secustor secustor left a comment

Choose a reason for hiding this comment

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

Signed-off-by: Aviv Guiser <avivguiser@gmail.com>
@KyriosGN0
Copy link
Contributor Author

@secustor added docs

Signed-off-by: Aviv Guiser <avivguiser@gmail.com>
docs/usage/opentelemetry.md Outdated Show resolved Hide resolved
Signed-off-by: Aviv Guiser <avivguiser@gmail.com>
docs/usage/opentelemetry.md Outdated Show resolved Hide resolved
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
secustor
secustor previously approved these changes Jun 11, 2024
Copy link
Collaborator

@HonkingGoose HonkingGoose left a comment

Choose a reason for hiding this comment

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

Good to go, after @secustor decides what to do with my review comment.

docs/usage/opentelemetry.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@secustor secustor left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

@secustor secustor enabled auto-merge June 12, 2024 10:22
@secustor secustor added this pull request to the merge queue Jun 12, 2024
Merged via the queue into renovatebot:main with commit 4914b6c Jun 12, 2024
37 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.406.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

kosmoz pushed a commit to kosmoz/renovate that referenced this pull request Jun 12, 2024
…space/version with env var (renovatebot#29583)

Signed-off-by: Aviv Guiser <avivguiser@gmail.com>
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
@KyriosGN0 KyriosGN0 deleted the feat/28986-allow-overwrite-of-otlp-params branch June 20, 2024 19:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OpenTelemetry] allow to overwrite provided Resource attributes
5 participants