Closed gavin-aguiar closed 2 months ago
Attention: Patch coverage is 45.16129%
with 17 lines
in your changes are missing coverage. Please review.
Project coverage is 46.16%. Comparing base (
330783f
) to head (ba14b63
). Report is 4 commits behind head on dev.:exclamation: Current head ba14b63 differs from pull request most recent head c170240. Consider uploading reports for the commit c170240 to get more accurate results
Files | Patch % | Lines |
---|---|---|
azure_functions_worker/dispatcher.py | 43.33% | 16 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Added support for opentelemetry.
The worker does not take a dependency on opentelemetry but checks if the function app has opentelemetry. If it finds the libraries, it will setup the Otel configs needed.
Otel is configured separately for sync and async. For async functions, we can directly call
configure_opentelemetry
but for sync functions this method has to be called inside the ThreadPool executor which is used to run sync functions. This is because OpenTelemetry is thread specific and will only update the Span on the thread it is configuredSample function app.
Fixes #
PR information
Quality of Code and Contribution Guidelines