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

Skip .NET auto-instrumentation if OTEL_DOTNET_AUTO_HOME env var is already set #1177

Conversation

avadhut123pisal
Copy link
Contributor

Fixes #1156

@avadhut123pisal avadhut123pisal requested a review from a team as a code owner October 15, 2022 05:36
@avadhut123pisal
Copy link
Contributor Author

@pellared @Kielek Can you please review the PR ?

Copy link
Member

@pellared pellared left a comment

Choose a reason for hiding this comment

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

nit comments only

@pavolloffay I created #1179

pkg/instrumentation/dotnet.go Outdated Show resolved Hide resolved
pkg/instrumentation/dotnet.go Outdated Show resolved Hide resolved
avadhut123pisal and others added 5 commits October 17, 2022 13:49
use errors.New() to get the error object instead of fmt.Errorf()

Co-authored-by: Robert Pająk <pellared@hotmail.com>
use errors.New() to get the error object instead of fmt.Errorf()

Co-authored-by: Robert Pająk <pellared@hotmail.com>
…ithub.com:avadhut123pisal/opentelemetry-operator into skip-instrumentation-if-otel-dotnet-auto-home-set
…tor into skip-instrumentation-if-otel-dotnet-auto-home-set
@pavolloffay
Copy link
Member

e2e test failed, I have restarted build

…tor into skip-instrumentation-if-otel-dotnet-auto-home-set
@avadhut123pisal
Copy link
Contributor Author

e2e test failed, I have restarted build

Not sure why it is failing. Error is for kuttl/harness/upgrade-test. During initial run it passed and then it started failing.

@pavolloffay pavolloffay merged commit 7aaf176 into open-telemetry:main Oct 19, 2022
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
…ready set (open-telemetry#1177)

* skips env var injection and sdk configurations if agent injection is skipped

* mutate container at the last of SDK injection step

* validate first and then mutate the container with env variables

* fixes go lint issues

* incorporates review comments

* fixes go lint issue

* removes return statement in case of failed instrumentation

* skips auto-instrumentation if OTEL_DOTNET_AUTO_HOME is already set

* use errors.New() to get the error object

use errors.New() to get the error object instead of fmt.Errorf()

Co-authored-by: Robert Pająk <pellared@hotmail.com>

* use errors.New() to get the error object

use errors.New() to get the error object instead of fmt.Errorf()

Co-authored-by: Robert Pająk <pellared@hotmail.com>

* replaces fmt.Errorf with error.New

Co-authored-by: Robert Pająk <pellared@hotmail.com>
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.

Do not enable .NET instrumentation if OTEL_DOTNET_AUTO_HOME is already set
4 participants