Skip to content

Commit

Permalink
fix: ignored opentelemetry spans which are not traces by us
Browse files Browse the repository at this point in the history
- install any opentelemetry instrumentation as a client dependency
- and use our Instana collector
- we will add Otel spans for this instrumentation although we do not support it
  as part of our integration
  • Loading branch information
kirrg001 committed Dec 20, 2023
1 parent cac945b commit 48e68a4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ module.exports.init = (_config, cls) => {
if (targetInstrumentationModule.transform) {
otelSpan = targetInstrumentationModule.transform(otelSpan);
}
} else {
// CASE: A customer has installed an Opentelemetry instrumentation, but
// we do not want to capture these spans. We only support our own set of modules.
return;
}

if (cls.tracingSuppressed()) {
Expand Down

0 comments on commit 48e68a4

Please sign in to comment.