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
Hi @tsologub, the internal format carry duration as fields of the span, not as an attribute. So it won't work, you need a sampling policy to handle that. Would you be interested in writing one? I can give you some pointers.
You need to implement a policy evaluator (see example here). This is an object with a simple interface: the method Evaluate that tells if a trace should be sampled or not. Your criteria for Evaluate should check the difference between EndTime and StartTime for each span to see if it satisfies the criteria configured for the evaluator.
Does Otel collector provide a possibility to use
duration
as a policy?I am trying to achieve that with the following collector configuration:
The text was updated successfully, but these errors were encountered: