File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ def reload_telemetry_module(
4141 def _reload (env_value : str | None = None ) -> Any :
4242 if env_value is None :
4343 monkeypatch .delenv (
44- 'OTEL_A2A_SDK_INSTRUMENTATION_ENABLED ' , raising = False
44+ 'OTEL_INSTRUMENTATION_A2A_SDK_ENABLED ' , raising = False
4545 )
4646 else :
4747 monkeypatch .setenv (
48- 'OTEL_A2A_SDK_INSTRUMENTATION_ENABLED ' , env_value
48+ 'OTEL_INSTRUMENTATION_A2A_SDK_ENABLED ' , env_value
4949 )
5050
5151 sys .modules .pop ('a2a.utils.telemetry' , None )
@@ -244,7 +244,7 @@ def test_env_var_controls_instrumentation(
244244 env_value : str | None ,
245245 expected_tracing : bool ,
246246) -> None :
247- """Test OTEL_A2A_SDK_INSTRUMENTATION_ENABLED controls span creation."""
247+ """Test OTEL_INSTRUMENTATION_A2A_SDK_ENABLED controls span creation."""
248248 telemetry_module = reload_telemetry_module (env_value )
249249
250250 is_noop = type (telemetry_module .trace ).__name__ == '_NoOp'
@@ -265,4 +265,4 @@ def test_env_var_disabled_logs_message(
265265 'A2A OTEL instrumentation disabled via environment variable'
266266 in caplog .text
267267 )
268- assert 'OTEL_A2A_SDK_INSTRUMENTATION_ENABLED ' in caplog .text
268+ assert 'OTEL_INSTRUMENTATION_A2A_SDK_ENABLED ' in caplog .text
You can’t perform that action at this time.
0 commit comments