DataDog / dd-trace-py

Datadog Python APM Client
https://ddtrace.readthedocs.io/
Other
506 stars 397 forks source link

test(lib-injection): test telemetry (#9477) #9618

Closed gnufede closed 1 week ago

gnufede commented 1 week ago

This change adds automated testing of the instrumentation telemetry emitted by the library injection workflow. It takes the approach of setting DD_TELEMETRY_FORWARDER_PATH to point to a simple bash script that writes to a file, then checking the contents of that file against per-test expectations about specific telemetry events.

I am planning on adding the following data to telemetry events emitted by ddtrace itself in a separate pull request:


Co-authored-by: ZStriker19 zach.groves@datadoghq.com Co-authored-by: Zachary Groves 32471391+ZStriker19@users.noreply.github.com (cherry picked from commit ea13466504338b54550827371068a54fd5a7721a)

Checklist

Reviewer Checklist