The collector now has a mysqlreceiver that adds trace parents to query logs. The trace parent is propagated to MySQL through a user variable @traceparent.
Similar to SqlCommenter, but instead of a comment, the library would need to run a SET @traceparent={trace}; before the intercepted query.
The opentelemetry-auto-pdo instrumentation could handle the propagation, or a new package could be introduced that'd handle it, similar to how it was done for the SqlCommenter. It might also need some configuration/ENV variables to toggle the propagation.
What do you guys think? What would be the preferred approach?
The collector now has a mysqlreceiver that adds trace parents to query logs. The trace parent is propagated to MySQL through a user variable
@traceparent.Similar to
SqlCommenter, but instead of a comment, the library would need to run aSET @traceparent={trace};before the intercepted query.The
opentelemetry-auto-pdoinstrumentation could handle the propagation, or a new package could be introduced that'd handle it, similar to how it was done for theSqlCommenter. It might also need some configuration/ENV variables to toggle the propagation.What do you guys think? What would be the preferred approach?