Custom SpanProcessor with `HttpApiBuilder.toWebHandler` and Filtering Traces Based on Errors
Does someone know how I can define a custom spanProcessor when using
Reason is that I'd like to filter traces that should be passed on to my collector only when there was any kind of error seen in my spans. Maybe someone has a best practice for doing that?
And one more question: I followed the observability example in the documentation with grafana/tempo but for some reason, the actual POST request shows up with
Thanks a lot !
HttpApiBuilder.toWebHandler ? When using the sdks, like for node, this is documented quite well, but either I overlooked it or it's just really hard to find documentation for it.Reason is that I'd like to filter traces that should be passed on to my collector only when there was any kind of error seen in my spans. Maybe someone has a best practice for doing that?
And one more question: I followed the observability example in the documentation with grafana/tempo but for some reason, the actual POST request shows up with
<root span not yet received> even though it looks ok in grafana and it doesn't seem to apply to OPTIONS requests (which I would also like to filter out completely). I've attached a screenshot where it shows an example. First I indeed thought that I am missing something about the root/parent span but anything I've tried so far did not solve it. I found a github issue in the otel repos where this was mentioned but I'm unsure if this can be ignored. Thanks a lot !

