...
The Dropwizard Metrics integration is provided by CodahaleMetricsProvider.
Configuration
The CodahaleMetricsProvider accept additional properties which could be configured on a Bus level or factory bean level (using its setProperties mutator).
Property | Description | Default |
---|---|---|
org.apache.cxf.management.service.counter.name | The name prefix to prepend to each metric being reported | null |
Integration with JAX-WS
Server
...
Alternatively, the MetricsFeature could be supplied directly to JAX-WS endpoint, for example:
Code Block |
---|
EndpointImpl endpoint = new EndpointImpl(bus, new HelloPortImpl(), null, null, new WebServiceFeature[]{ |
...
new MetricsFeature(metricsProvider) |
...
}); |
Client
The client integration is no different from the server and uses the same MetricsFeature feature.
...