The StatementExecutionStartEvent
has args
and caller
properties but they are not added to span attributes.
Having caller and query arguments are helpful to debug queries,
to prevent overloading of storage with serialized arguments and caller (could be class::method
) this attributes better to to keep optional
caller is Connection::findCallerFromDebugBacktrace()
introduce configuration for \Drupal\opentelemetry\EventSubscriber\DatabaseStatementTraceEventSubscriber
to add query arguments and caller to span attributes
Active
1.0
Code