-
|
Hi,
public class HelloSamplerProvider implements ConfigurableSamplerProvider {
@Override
public Sampler createSampler(ConfigProperties config) {
System.out.println("****** HELLO SAMPLER CREATED ********");
return new RateLimitingSampler(1);
}
@Override
public String getName() {
return "hello";
}
}I have tried putting this class within my app, in a custom otel javaagent and as a separate jar with Nothing seems to be working for me. Any ideas? Pointers to docs? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
hey @stnor! The way this is supported today is by building a custom distro of the the java agent:
Or through an unsupported/undocumented feature: Both of these are painful, and we are working on making it simpler, supported, and documented: |
Beta Was this translation helpful? Give feedback.
hey @stnor!
The way this is supported today is by building a custom distro of the the java agent:
Or through an unsupported/undocumented feature:
otel.initializer.jarBoth of these are painful, and we are working on making it simpler, supported, and documented: