We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to correlate my traces and logs, my logs are being output as json, the dd.trace_id and dd.span_id are in the log but their value is 0
On my settings.json I put:
MIDDLEWARE = [ 'django_datadog_logger.middleware.request_id.RequestIdMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django_datadog_logger.middleware.error_log.ErrorLoggingMiddleware', 'django_datadog_logger.middleware.request_log.RequestLoggingMiddleware', ] LOGGING = { 'version': 1, 'disable_existing_loggers': False, "formatters": { "console": {"format": "{levelname} {message}", "style": "{"}, "json": {"()": "django_datadog_logger.formatters.datadog.DataDogJSONFormatter"}, }, 'handlers': { 'console': { 'class': 'logging.StreamHandler', "formatter": "json", }, }, 'root': { 'handlers': ['console'], 'level': 'WARNING', }, 'loggers': { 'django': { 'handlers': ['console'], 'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'), 'propagate': False, }, }, }
Also put the env "DD_LOGS_INJECTION=true" in the container, also started the app with "ddtrace-run python manage.py runserver"
Traces are working fine in datadog, logs are also in datadog, but the trace.id on logs is aways 0 and the correlations is not working
The text was updated successfully, but these errors were encountered:
@ewertonhm did you ever get this fixed?
Sorry, something went wrong.
No branches or pull requests
Description
I'm trying to correlate my traces and logs, my logs are being output as json, the dd.trace_id and dd.span_id are in the log but their value is 0
What I Did
On my settings.json I put:
Also put the env "DD_LOGS_INJECTION=true" in the container, also started the app with "ddtrace-run python manage.py runserver"
Traces are working fine in datadog, logs are also in datadog, but the trace.id on logs is aways 0 and the correlations is not working
The text was updated successfully, but these errors were encountered: