Skip to content

[Feature Request] otelsql: allow named parameters #119

Description

@monwolf

We are starting to instrument a service with otel and otelsql. It worked fine until we tested queries with named parameters, and we received the following error:

{ 	"error": "otelsql: driver does not support named parameters" }

the code generating the error is:

    namedParams = append(namedParams, sql.Named("numper", userID))
    namedParams = append(namedParams, sql.Named("fechaIni", filtros.FecIni.NullTime))
    namedParams = append(namedParams, sql.Named("fechaFin", filtros.FecFin.NullTime))
    rows, err := repo.db.Query(dbQuery, namedParams...)

We would appreciate having this functionality.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions