File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ddtrace/contrib/internal/azure_eventhubs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import os
21from typing import Dict
32
43import azure .eventhub as azure_eventhub
1110from ddtrace .internal .schema import schematize_service_name
1211from ddtrace .internal .utils import get_argument_value
1312from ddtrace .internal .utils .formats import asbool
13+ from ddtrace .settings ._config import _get_config
1414from ddtrace .trace import Pin
1515
1616from .utils import create_context
2121 "azure_eventhubs" ,
2222 dict (
2323 _default_service = schematize_service_name ("azure_eventhubs" ),
24- distributed_tracing = asbool (os . getenv ("DD_AZURE_EVENTHUBS_DISTRIBUTED_TRACING" , default = True )),
25- batch_links = asbool (os . getenv ("DD_TRACE_AZURE_EVENTHUBS_BATCH_LINKS_ENABLED" , default = True )),
24+ distributed_tracing = asbool (_get_config ("DD_AZURE_EVENTHUBS_DISTRIBUTED_TRACING" , default = True )),
25+ batch_links = asbool (_get_config ("DD_TRACE_AZURE_EVENTHUBS_BATCH_LINKS_ENABLED" , default = True )),
2626 ),
2727)
2828
You can’t perform that action at this time.
0 commit comments