File tree Expand file tree Collapse file tree
azure-monitor-opentelemetry-distro
azure/monitor/opentelemetry/distro Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ def configure_azure_monitor(**kwargs):
2828 service_namespace = configurations .get ("service_namespace" , "" )
2929 service_instance_id = configurations .get ("service_instance_id" , "" )
3030 sampling_ratio = configurations .get ("sampling_ratio" , 1.0 )
31- tracing_interval_millis = configurations .get (
32- "tracing_interval_millis " , 30000
31+ tracing_export_interval_millis = configurations .get (
32+ "tracing_export_interval_millis " , 30000
3333 )
3434
3535 if not disable_tracing :
@@ -48,6 +48,6 @@ def configure_azure_monitor(**kwargs):
4848 exporter = AzureMonitorTraceExporter (** kwargs )
4949 span_processor = BatchSpanProcessor (
5050 exporter ,
51- export_timeout_millis = tracing_interval_millis ,
51+ export_timeout_millis = tracing_export_interval_millis ,
5252 )
5353 trace .get_tracer_provider ().add_span_processor (span_processor )
Original file line number Diff line number Diff line change 1010configure_azure_monitor (
1111 connection_string = "<your-connection-string>" ,
1212 service_name = "foo_service" ,
13- tracing_interval_millis = 15000 ,
13+ tracing_export_interval_millis = 15000 ,
1414)
1515
1616tracer = trace .get_tracer (__name__ )
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def test_configure_azure_monitor(
6464 service_namespace = "test_namespace" ,
6565 service_instance_id = "test_id" ,
6666 sampling_ratio = 0.5 ,
67- tracing_interval_millis = 15000 ,
67+ tracing_export_interval_millis = 15000 ,
6868 )
6969 resource_mock .create .assert_called_once_with (
7070 {
You can’t perform that action at this time.
0 commit comments