Skip to content

Conversation

@marselester
Copy link
Contributor

@marselester marselester commented Dec 9, 2025

It looks like the logConnectionDetails parameter was accidentally dropped. I've added it back, see the span below.

span.json
{
  "Name": "query SELECT ...",
  "SpanContext": {
    "TraceID": "cba1a3ab75cb94a81fb2c0557f64c925",
    "SpanID": "d02575eed7c1c6c4",
    "TraceFlags": "01",
    "TraceState": "",
    "Remote": false
  },
  "Parent": {
    "TraceID": "cba1a3ab75cb94a81fb2c0557f64c925",
    "SpanID": "9cbf7408fbcd16da",
    "TraceFlags": "01",
    "TraceState": "",
    "Remote": false
  },
  "SpanKind": 3,
  "StartTime": "2025-12-09T20:04:08.169684704Z",
  "EndTime": "2025-12-09T20:04:08.169731392Z",
  "Attributes": [
    {
      "Key": "db.system",
      "Value": {
        "Type": "STRING",
        "Value": "postgresql"
      }
    },
    {
      "Key": "server.address",
      "Value": {
        "Type": "STRING",
        "Value": "/var/run/postgresql/"
      }
    },
    {
      "Key": "server.port",
      "Value": {
        "Type": "INT64",
        "Value": 5432
      }
    },
    {
      "Key": "user.name",
      "Value": {
        "Type": "STRING",
        "Value": "fizz"
      }
    },
    {
      "Key": "db.namespace",
      "Value": {
        "Type": "STRING",
        "Value": "bazz"
      }
    },
    {
      "Key": "db.query.text",
      "Value": {
        "Type": "STRING",
        "Value": "SELECT ..."
      }
    },
    {
      "Key": "db.operation.name",
      "Value": {
        "Type": "STRING",
        "Value": "SELECT"
      }
    },
    {
      "Key": "pgx.rows_affected",
      "Value": {
        "Type": "INT64",
        "Value": 1
      }
    }
  ],
  "Events": null,
  "Links": null,
  "Status": {
    "Code": "Unset",
    "Description": ""
  },
  "DroppedAttributes": 0,
  "DroppedEvents": 0,
  "DroppedLinks": 0,
  "ChildSpanCount": 0,
  "Resource": null,
  "InstrumentationScope": {
    "Name": "github.com/exaring/otelpgx",
    "Version": "v0.9.3",
    "SchemaURL": "",
    "Attributes": null
  },
  "InstrumentationLibrary": {
    "Name": "github.com/exaring/otelpgx",
    "Version": "v0.9.3",
    "SchemaURL": "",
    "Attributes": null
  }
}

Copy link
Member

@obitech obitech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@obitech obitech merged commit 636f86d into exaring:main Dec 10, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants