Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

opencensus-ext-mysql does not seem to be sending data to Azure Monitor #782

@arkataev

Description

@arkataev
  • opencensus == 0.7.1
  • opencensus-ext-logging == 0.1.0
  • opencensus-ext-requests == 0.7.1
  • mysql-connector-python
  • opencensus-ext-mysql == 0.1.2
  • mysqlclient == 1.4.4
  • mysql-connector-python == 2.2.9
  • django == 2.2.5
  • opencensus-ext-django == 0.7.1
  • opencensus-ext-azure == 0.7.1
# settings.py 
DATABASES={
            'default': {
                'ENGINE': 'django.db.backends.mysql',
                'NAME': 'test_db',
                'USER': 'root',
                'HOST': 'mysqldb',
                'PASSWORD': 'secret',
                'PORT': '3306'
            },
        }
config_integration.trace_integrations(['mysql'])

tracer = Tracer(exporter=AzureExporter(instrumentation_key='secret'), sampler=ProbabilitySampler(1.0))
with tracer.span('db_span'):
    TestModel.objects.all()

Db call above does not export any data. While if used with config_integration.trace_integrations(['pymysql']) integration - does.

Can anyone, please give any comments on using opencensus-ext-mysql integration with django?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions