You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to be able to add additional attributes to the metrics exported by otelfiber similar to WithCustomAttrributes for span.
Additional Context (optional)
In our case we want to set a custom parameter based on request body parameter, and it's currently impossible. We either have to reimplement the metrics ourselves via custom middleware or fork the library and use the updated fork.
Code Snippet (optional)
otelfiber.Middleware(otelfiber.WithCustomRequestMetricAttributes(...), otelfiber.WithCustomResponseMetricAttributes(...))
// or
otelfiber.Middleware(otelfiber.WithCustomMetricAttributes(...))
Feature Description
We want to be able to add additional attributes to the metrics exported by otelfiber similar to WithCustomAttrributes for span.
Additional Context (optional)
In our case we want to set a custom parameter based on request body parameter, and it's currently impossible. We either have to reimplement the metrics ourselves via custom middleware or fork the library and use the updated fork.
Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: