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

Dynatrace One Agent: Traces not exported without @opentelemetry/exporter-trace-otlp-proto #274

Open
sebastien-savalle opened this issue Jan 8, 2025 · 5 comments

Comments

@sebastien-savalle
Copy link

Hello,

According to the documentation, it is recommended to let the Dynatrace OneAgent collect and export traces created by the library in order to provide a better experience.
We have a cloud foundry application running on SAP BTP with Dynatrace OneAgent enabled.
We can see detailed traces when the dependency @opentelemetry/exporter-trace-otlp-proto is present including traces related to Hana (cap-js/hana).
But we can't see details when we remove the dependency @opentelemetry/exporter-trace-otlp-proto. Only http requests are captured without sub traces (db, manual trace...)

Is there any requirements regarding the service binding ? We use a user-provided-service to share the dynatrace instance across cf spaces.

In addition, could you explain what are the differences between traces exported by one agent and the ones exported by OpenTelemetry ?

@github-actions github-actions bot added the new label Jan 8, 2025
@hm23 hm23 removed the new label Jan 9, 2025
@yevgentrukhin
Copy link

I believe @opentelemetry/exporter-trace-otlp-proto would be needed if you plan on ingesting via OTEL to Dynatrace with 'telemetry-to-dynatrace'. Is that what you want to do? If not, oneAgent is extracting and showing OTEL instrumented traces without direct OTEL ingestion and it combines its own extracted traces with OTEL instrumented ones. If you want I can show it supposed to work in offline.

@sjvans
Copy link
Contributor

sjvans commented Jan 20, 2025

hi @sebastien-savalle

what is the name of your ups?

best,
sebastian

@sebastien-savalle
Copy link
Author

Hi @sjvans,

Our ups is named emo-dynatrace-ups so it contains dynatrace as requested in the library.

if (vcap['user-provided']?.some(b => b.name.match(/dynatrace/)))

Thanks,
Sebastien

@sjvans
Copy link
Contributor

sjvans commented Jan 21, 2025

hi @sebastien-savalle

yeah, sorry, that was a late hour brain fart. the name doesn't matter. 😅

do you get this log output?

LOG._info && LOG.info('Dynatrace OneAgent detected, disabling tracing exporter')

if so, i'm afraid i can't assist any further.

best,
sebastian

@sebastien-savalle
Copy link
Author

sebastien-savalle commented Jan 21, 2025

Hi @sjvans,

No I can't see this message.
I have only warning related to the telemetry:

Image

And regarding one agent, I can find only these messages:

Image

But this is normal since we put the dependency @opentelemetry/exporter-trace-otlp-proto

!hasDependency('@opentelemetry/exporter-trace-otlp-proto')

We came back to the original question ;)

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

No branches or pull requests

4 participants