Skip to content

Tracing django system-loggers with operation_id #774

Open
@arkataev

Description

@arkataev

Python 2.7.13
django==1.11.20
opencensus == 0.7.1
opencensus-ext-django == 0.7.0
opencensus-ext-azure == 0.7.0
opencensus-ext-logging == 0.1.0

Seems like at least some django system-loggers (like, django.db.backends) are logged AFTER span, opened in Middleware, was closed. That means no operation_id is set in trace record produced by django logger.

is there any way to produce django system-log traces related to http-request?

p.s config_integration.trace_integrations(['logging']) is set inside settings.py in django-project before any loggers are created.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions