Skip to content

Commit f61eb91

Browse files
authored
logging: fix typo (#1323)
1 parent 3fe8f9d commit f61eb91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ddtrace/contrib/logging/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Datadog APM traces can be integrated with Logs by:
2+
Datadog APM traces can be integrated with the logs product by:
33
44
1. Having ``ddtrace`` patch the ``logging`` module. This will add trace
55
attributes to the log record.
@@ -40,15 +40,15 @@ def hello():
4040
If you prefer to instrument manually, patch the logging library then update the
4141
log formatter as in the following example
4242
43-
Note that ``dd.trace_id`` and ``dd.span_id`` must come last::
43+
Make sure that your log format exactly matches the following::
4444
4545
from ddtrace import patch_all; patch_all(logging=True)
4646
import logging
4747
from ddtrace import tracer
4848
4949
FORMAT = ('%(asctime)s %(levelname)s [%(name)s] [%(filename)s:%(lineno)d] '
5050
'[dd.service=%(dd.service)s dd.env=%(dd.env)s '
51-
'dd.version=%(dd.version)s] '
51+
'dd.version=%(dd.version)s '
5252
'dd.trace_id=%(dd.trace_id)s dd.span_id=%(dd.span_id)s]'
5353
'- %(message)s')
5454
logging.basicConfig(format=FORMAT)

0 commit comments

Comments
 (0)