THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
final Map<String, String> properties = new HashMap<String, String>();
properties.put("span.receiver", StandardOutSpanReceiver.class.getName());
properties.put("sampler", AlwaysSampler.class.getName());
final JAXRSServerFactoryBean factory = RuntimeDelegate.getInstance().createEndpoint(/* application instance */, JAXRSServerFactoryBean.class);
factory.setFeatures(Arrays.< Feature >asList(new HTraceFeature(HTraceConfiguration.fromMap(properties))));
...
return factory.create(); |
...