Skip to content

Support WithSpanNameFormatter to otelecho #6363

Open
@gifff

Description

@gifff

Problem Statement

otelecho lacks support of custom span name formatter like one in otelhttp.

Proposed Solution

Add WithSpanNameFormatter option to otelecho.

Alternatives

Prior Art

func WithSpanNameFormatter(f func(operation string, r *http.Request) string) Option {
return optionFunc(func(c *config) {
c.SpanNameFormatter = f
})
}

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions