feat: Setup metric provider for manual and auto-instrumented measurements#126
Open
morgan-wowk wants to merge 1 commit intosignal-specific-exportersfrom
Open
feat: Setup metric provider for manual and auto-instrumented measurements#126morgan-wowk wants to merge 1 commit intosignal-specific-exportersfrom
morgan-wowk wants to merge 1 commit intosignal-specific-exportersfrom
Conversation
This was referenced Feb 25, 2026
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
8d9df4b to
66474d1
Compare
10f32fa to
cd03357
Compare
morgan-wowk
commented
Feb 25, 2026
cloud_pipelines_backend/instrumentation/opentelemetry/metrics.py
Outdated
Show resolved
Hide resolved
yuechao-qin
requested changes
Feb 25, 2026
cloud_pipelines_backend/instrumentation/opentelemetry/_internal/config.py
Outdated
Show resolved
Hide resolved
cloud_pipelines_backend/instrumentation/opentelemetry/_internal/config.py
Outdated
Show resolved
Hide resolved
cloud_pipelines_backend/instrumentation/opentelemetry/_internal/config.py
Outdated
Show resolved
Hide resolved
cloud_pipelines_backend/instrumentation/opentelemetry/_internal/config.py
Show resolved
Hide resolved
cloud_pipelines_backend/instrumentation/opentelemetry/_internal/config.py
Outdated
Show resolved
Hide resolved
cloud_pipelines_backend/instrumentation/opentelemetry/_internal/config.py
Show resolved
Hide resolved
cloud_pipelines_backend/instrumentation/opentelemetry/_internal/temporality.py
Outdated
Show resolved
Hide resolved
cloud_pipelines_backend/instrumentation/opentelemetry/metrics.py
Outdated
Show resolved
Hide resolved
…ents Made-with: Cursor
cd03357 to
a9c66b9
Compare
66474d1 to
06ecffc
Compare
yuechao-qin
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

TL;DR
Added OpenTelemetry metrics support with configurable aggregation temporality alongside existing tracing functionality.
What changed?
metrics.pymodule to configure OpenTelemetry meter provider with OTLP exporters (gRPC and HTTP)TANGLE_OTEL_METRIC_EXPORTER_ENDPOINTandTANGLE_OTEL_METRIC_EXPORTER_PROTOCOLenvironment variablesTANGLE_OTEL_METRICS_TEMPORALITY_COUNTERtemporality.pymodule to map string-based temporality configuration to OpenTelemetry SDK typesproviders.setup()to initialize both tracing and metrics providers when configuredsetup_metricsfunction in the package's public APIHow to test?
Set the
TANGLE_OTEL_METRIC_EXPORTER_ENDPOINTenvironment variable to your OTLP collector endpoint and callproviders.setup(). Optionally configure temporality settings using theTANGLE_OTEL_METRICS_TEMPORALITY_*environment variables. The system will work with metrics-only, tracing-only, or both configurations.Why make this change?
This enables comprehensive observability by adding metrics collection capabilities to complement the existing distributed tracing functionality, allowing applications to export both traces and metrics to OpenTelemetry collectors with fine-grained control over aggregation behavior.