Skip to content

Wrong db.system as per OTeL naming convention #1075

@fmiqbal

Description

@fmiqbal

How do you use Sentry?

Self-hosted / on-premises

SDK version

4.20.0

Laravel version

12.41.1

Steps to reproduce

  1. Use postgresql as database
  2. Enable performance tracing
  3. Make a few call

Expected result

  1. in /insights/backend/database/ in Sentry Self Hosted version 25.11.1 (its from Insight -> Backend -> Queries)
  2. The table is filled correctly

Actual result

  1. Observe the Queries Per Minute and Average Duration graph is working, but empty table
  2. Observe in the actual span, the tag for db.system is pgsql

I am a bit curious because on my instance (in k8s) it didnt show, digging a bit deeper I suspect its because of

'db.system' => $query->connection->getDriverName(),

Meanwhile sentry use (as stated in the docs) https://docs.sentry.io/product/insights/backend/queries/#span-eligibility, which I think it use https://github.com/open-telemetry/semantic-conventions/blob/main/docs/db/database-spans.md, which doesnt have pgsql and that's why its not working on self-hosted,

Also this is working in sentry.io, But I don't know if I should raise there too,

For the time being I am trying to spun up fresh instance of sentry and try that first

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions