Move otelgin/internal/semconvutil
into otelgin
#4581
Labels
area: instrumentation
Related to an instrumentation package
enhancement
New feature or request
instrumentation: otelgin
Milestone
Problem Statement
Analogous to #4580, just for
gin-gonic
.The
semconvutil
package follows semantic conventions for span attributes set during handling of a request by a server.Exposing the utility functions from
semconvutil
would allow other gin middlewares to use them, leading to consistent, semconv-aligned telemetry.In my specific use case, I'm providing a logging middleware and would like to use the same attribute keys as the
otelgin
Middleware does.Proposed Solution
Move
semconvutil
fromgo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin/internal/semconvutil
togo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin/semconvutil
Alternatives
semconvutil
to internal instrumentation library. Which isn't really maintainableotelgin
middleware (if that's even possible)Prior Art
Not aware of any.
Additional Context
We have some servers which handle a low frequency of requests and would like to correlate log messages in our system with the corresponding spans we export.
The text was updated successfully, but these errors were encountered: