Add optianal logging and filtering query arguments

Created on 12 January 2025, 3 months ago

Problem/Motivation

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

Steps to reproduce

caller is Connection::findCallerFromDebugBacktrace()

Proposed resolution

introduce configuration for \Drupal\opentelemetry\EventSubscriber\DatabaseStatementTraceEventSubscriber to add query arguments and caller to span attributes

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France andypost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024