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

[BREAKING CHANGES] fix: issue related to missing some auto instrumentation tracing data #9

Merged
merged 6 commits into from
Feb 29, 2024

Conversation

overbit
Copy link

@overbit overbit commented Feb 29, 2024

Fixes: amplication/amplication#8154

Due to the v4 way of instantiating the opentelemetry nodesdk provider, it was not possible to benefit from some of the auto-instrumentation libraries.
This was due to the fact that most of these are working by re-wiring the target libraries (like @opentelemetry/instrumentation-graphql with graphql) and the order of import of the instrumentation and target library is vital for a working solution.

The breaking change of this PR is related to the instantiation flow, splitting the autoTracingInjectors that trace nestjs resources from the NodeSDK instantiation.
More details in the README

… were loaded after the targeting lib i.e. graphql

BREAKING CHANGE: the tracing SDK initialisation is now independent from the TracingModule
@overbit overbit force-pushed the fix-missing-autoinstrumentation-issues branch from 5d87cac to 33fe13c Compare February 29, 2024 10:04
@overbit overbit changed the title fix: issue related to missing some auto instrumentation tracing data [BREAKING CHANGES] fix: issue related to missing some auto instrumentation tracing data Feb 29, 2024
@overbit overbit force-pushed the fix-missing-autoinstrumentation-issues branch from 2eec4fb to 08c0ead Compare February 29, 2024 15:46
@overbit overbit merged commit b422716 into main Feb 29, 2024
2 checks passed
@overbit overbit deleted the fix-missing-autoinstrumentation-issues branch February 29, 2024 15:58
Copy link

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

🐛 Bug Report: opentelemetry-nestjs not supporting graphql and other instrumentations
2 participants