Skip to content

[FEATURE]: Custom Span Tags for SQL Spans #6679

Open
@jwyza-pi

Description

@jwyza-pi

Framework or Library Name

No response

Library Type

No response

Library Version(s)

No response

Describe the feature you'd like

Presently SQL spans are generated by what appears to be site call interceptions. This means that, as far as I can tell, we lack the ability to modify those spans in any way. Specifically we lack the ability to add custom tags using Tracer.Instance.ActiveScope.Span.SetTag. Given that, would it be possible to do something like adding the ability to inject tags for the span based on something inside the query itself? Thinking something like specialized comments:

-- spantag:mytagname1:mytagvalue1
-- spantag:foo:bar

SELECT * FROM MyTable WHERE Id = @id

Is your feature request related to a problem?

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:enhancementImprovement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions