Skip to content

Commit d25b014

Browse files
authored
Add uds_path to ddtrace.opentracer.Tracer (#1275)
Fixes #1274
1 parent 0520ec8 commit d25b014

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

ddtrace/opentracer/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
'GLOBAL_TAGS',
1111
'SAMPLER',
1212
'PRIORITY_SAMPLING',
13+
'UDS_PATH',
1314
'SETTINGS',
1415
]
1516

@@ -25,6 +26,7 @@
2526
GLOBAL_TAGS='global_tags',
2627
SAMPLER='sampler',
2728
PRIORITY_SAMPLING='priority_sampling',
29+
UDS_PATH='uds_path',
2830
SETTINGS='settings',
2931
)
3032

ddtrace/opentracer/tracer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
keys.GLOBAL_TAGS: {},
2828
keys.SAMPLER: None,
2929
keys.PRIORITY_SAMPLING: None,
30+
keys.UDS_PATH: None,
3031
keys.SETTINGS: {
3132
FILTERS_KEY: [],
3233
},
@@ -89,6 +90,7 @@ def __init__(self, service_name=None, config=None, scope_manager=None, dd_tracer
8990
sampler=self._config.get(keys.SAMPLER),
9091
settings=self._config.get(keys.SETTINGS),
9192
priority_sampling=self._config.get(keys.PRIORITY_SAMPLING),
93+
uds_path=self._config.get(keys.UDS_PATH),
9294
context_provider=dd_context_provider,
9395
)
9496
self._propagators = {

docs/advanced_usage.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,8 @@ for usage.
451451
+---------------------+----------------------------------------+---------------+
452452
| `priority_sampling` | see `Priority Sampling`_ | `True` |
453453
+---------------------+----------------------------------------+---------------+
454+
| `uds_path` | unix socket of agent to connect to | `None` |
455+
+---------------------+----------------------------------------+---------------+
454456
| `settings` | see `Advanced Usage`_ | `{}` |
455457
+---------------------+----------------------------------------+---------------+
456458

0 commit comments

Comments
 (0)