This repository was archived by the owner on Sep 17, 2025. It is now read-only.
Description
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?
Reactions are currently unavailable
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-mysqlintegration withdjango?