Closed dvlprx closed 2 months ago
@dvlprx "db.statement.tag" has absolutely nothing to do with Marten. I'm not sure what it is you're expecting us to do here.
I think you need to talk to the Npgsql team. I somewhat remember that they didn't yet add Otel tracing to NpgsqlBatch yet, and Marten uses that. Until then, I don't think this is actionable from the Marten side of things. If this is fixed on the Npgsql side, feel free to send a PR updating that to Marten.
Thank you for clarification, I will post in npgsql forum and update here :)
Hi @jeremydmiller,
In version 6.4.1, the code below exported the db.statment tag correctly to created activities. Since 7.0.0 the db.statement.tag is not present in the activity anymore.
You can see what is received in zipkin in this image:
Here is the full console app, to reproduce the issue:
ProjectFile: