Skip to content

Default behvior of sqlOperationName does not ignore comments #63

@rfhold

Description

@rfhold

Our spans all have db.operation.name="--" because our queries have comments in the beginning, I would expect the the actual operation to be listed instead.

an example of the span attributes

[
  {
    "value": "--",
    "key": "db.operation.name"
  },
  {
    "value": "-- name: GetFoo :one\nSELECT id FROM bar.foo WHERE id = $1",
    "key": "db.query.text"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions