We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 248b3d2 commit 89ee998Copy full SHA for 89ee998
packages/traceloop-sdk/traceloop/sdk/__init__.py
@@ -154,7 +154,11 @@ def init(
154
span_postprocess_callback=span_postprocess_callback,
155
)
156
157
- if not is_metrics_enabled() or not metrics_exporter and exporter:
+ metrics_disabled_by_config = not is_metrics_enabled()
158
+ has_custom_spans_pipeline = processor or exporter
159
+ custom_trace_without_custom_metrics = has_custom_spans_pipeline and not metrics_exporter
160
+
161
+ if metrics_disabled_by_config or custom_trace_without_custom_metrics:
162
print(Fore.YELLOW + "Metrics are disabled" + Fore.RESET)
163
else:
164
metrics_endpoint = os.getenv("TRACELOOP_METRICS_ENDPOINT") or api_endpoint
0 commit comments