Skip to content

Commit

Permalink
fix: ignored opentelemetry spans which are not traces by us (#974)
Browse files Browse the repository at this point in the history
- install any opentelemetry instrumentation inside the client / customer appliation + use our Instana collector
- it will add Otel spans for this instrumentation although we do not support it as part of our integration
- found this issue in #967
  • Loading branch information
kirrg001 authored Dec 29, 2023
1 parent b7fb7cf commit 62add1c
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 62add1c

Please sign in to comment.