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
As I understand it, the current tracing integration allows one to provide a function to get header data from input/output types, and these are added as attributes, following req.header.{Header-Name} or resp.header.{Header-Name}.
I'm not sure of the right way to do this, but it would be nice for it to be possible to attribute arbitrary information from input and output parameters.
The simplest thing that could possibly work might be two new parameters:
I => Seq[(String, AttributeValue)]
O => Seq[(String, AttributeValue)]
Does this then reduce the need for the header extractors? It is nice that they provide a standard format for header naming, but they duplicate this ability to some extent.
The text was updated successfully, but these errors were encountered:
fiadliel
changed the title
More flexibility when extracting span attributes from input/output
More flexibility when extracting span attributes from input/output with tapir endpoints
Nov 17, 2021
I agree that the current requirement for a Headers extractor doesn't seem to be the best option. I will try to rework it along with the support for secured endpoints.
As I understand it, the current tracing integration allows one to provide a function to get header data from input/output types, and these are added as attributes, following
req.header.{Header-Name}
orresp.header.{Header-Name}
.I'm not sure of the right way to do this, but it would be nice for it to be possible to attribute arbitrary information from input and output parameters.
The simplest thing that could possibly work might be two new parameters:
I => Seq[(String, AttributeValue)]
O => Seq[(String, AttributeValue)]
Does this then reduce the need for the header extractors? It is nice that they provide a standard format for header naming, but they duplicate this ability to some extent.
The text was updated successfully, but these errors were encountered: