Skip to content

Running an agent, how do I filter out some of the events #5680

Discussion options

You must be logged in to vote

Hey @gustaff-weldon,
You could try configuring a custom sampler using a javaagent extension, e.g. a RuleBasedRoutingSampler from the contrib repo.
Unfortunately the samplers project doesn't have documentation other than Javadocs, but perhaps something like this would suffice:

RuleBasedRoutingSampler.builder(SERVER, Sampler.parentBased(Sampler.alwaysOff))
  .drop(SemanticAttributes.HTTP_TARGET, "/actuator")
  .build()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gustaff-weldon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants