public class SpanDerivedMetricsUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEBUG_SPAN_TAG_KEY |
static String |
DEBUG_SPAN_TAG_VAL |
static String |
ERROR_SPAN_TAG_KEY |
static String |
ERROR_SPAN_TAG_VAL |
static String |
TRACING_DERIVED_PREFIX |
| Constructor and Description |
|---|
SpanDerivedMetricsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
reportHeartbeats(com.wavefront.sdk.common.WavefrontSender wavefrontSender,
Set<com.wavefront.sdk.common.Pair<Map<String,String>,String>> discoveredHeartbeatMetrics)
Report discovered heartbeats to Wavefront.
|
static void |
reportHeartbeats(com.wavefront.sdk.common.WavefrontSender wavefrontSender,
Set<com.wavefront.sdk.common.Pair<Map<String,String>,String>> discoveredHeartbeatMetrics,
String secondaryComponent)
Report discovered heartbeats to Wavefront.
|
static com.wavefront.sdk.common.Pair<Map<String,String>,String> |
reportWavefrontGeneratedData(WavefrontInternalReporter wfInternalReporter,
String operationName,
String application,
String service,
String cluster,
String shard,
String source,
String componentTagValue,
boolean isError,
long spanDurationMicros,
Set<String> traceDerivedCustomTagKeys,
List<com.wavefront.sdk.common.Pair<String,String>> spanTags)
Report generated metrics and histograms from the wavefront tracing span using delta counter.
|
static com.wavefront.sdk.common.Pair<Map<String,String>,String> |
reportWavefrontGeneratedData(WavefrontInternalReporter wfInternalReporter,
String operationName,
String application,
String service,
String cluster,
String shard,
String source,
String componentTagValue,
boolean isError,
long spanDurationMicros,
Set<String> traceDerivedCustomTagKeys,
List<com.wavefront.sdk.common.Pair<String,String>> spanTags,
boolean isReportingDelta)
Report generated metrics and histograms from the wavefront tracing span.
|
protected static com.wavefront.sdk.common.Pair<Map<String,String>,String> |
reportWavefrontGeneratedData(WavefrontInternalReporter wfInternalReporter,
String operationName,
String application,
String service,
String cluster,
String shard,
String source,
String componentTagValue,
boolean isError,
long spanDurationMicros,
Set<String> traceDerivedCustomTagKeys,
List<com.wavefront.sdk.common.Pair<String,String>> spanTags,
boolean isReportingDelta,
Supplier<Long> clock) |
public static final String TRACING_DERIVED_PREFIX
public static final String ERROR_SPAN_TAG_KEY
public static final String ERROR_SPAN_TAG_VAL
public static final String DEBUG_SPAN_TAG_KEY
public static final String DEBUG_SPAN_TAG_VAL
@Nonnull public static com.wavefront.sdk.common.Pair<Map<String,String>,String> reportWavefrontGeneratedData(@Nonnull WavefrontInternalReporter wfInternalReporter, @Nonnull String operationName, @Nonnull String application, @Nonnull String service, String cluster, String shard, String source, String componentTagValue, boolean isError, long spanDurationMicros, Set<String> traceDerivedCustomTagKeys, List<com.wavefront.sdk.common.Pair<String,String>> spanTags)
operationName - span operation name.application - name of the application.service - name of the service.cluster - name of the cluster.shard - name of the shard.source - reporting source.componentTagValue - component tag value.isError - indicates if the span is erroneous.spanDurationMicros - Original span duration (both Zipkin and Jaeger support micros
duration).traceDerivedCustomTagKeys - custom tags added to derived RED metrics.spanTags - span tags.@Nonnull public static com.wavefront.sdk.common.Pair<Map<String,String>,String> reportWavefrontGeneratedData(@Nonnull WavefrontInternalReporter wfInternalReporter, @Nonnull String operationName, @Nonnull String application, @Nonnull String service, String cluster, String shard, String source, String componentTagValue, boolean isError, long spanDurationMicros, Set<String> traceDerivedCustomTagKeys, List<com.wavefront.sdk.common.Pair<String,String>> spanTags, boolean isReportingDelta)
operationName - span operation name.application - name of the application.service - name of the service.cluster - name of the cluster.shard - name of the shard.source - reporting source.componentTagValue - component tag value.isError - indicates if the span is erroneous.spanDurationMicros - Original span duration (both Zipkin and Jaeger support micros
duration).traceDerivedCustomTagKeys - custom tags added to derived RED metrics.spanTags - span tags.isReportingDelta - reporting delta counters or normal counters.@Nonnull protected static com.wavefront.sdk.common.Pair<Map<String,String>,String> reportWavefrontGeneratedData(@Nonnull WavefrontInternalReporter wfInternalReporter, String operationName, String application, String service, String cluster, String shard, String source, String componentTagValue, boolean isError, long spanDurationMicros, Set<String> traceDerivedCustomTagKeys, List<com.wavefront.sdk.common.Pair<String,String>> spanTags, boolean isReportingDelta, Supplier<Long> clock)
public static void reportHeartbeats(com.wavefront.sdk.common.WavefrontSender wavefrontSender,
Set<com.wavefront.sdk.common.Pair<Map<String,String>,String>> discoveredHeartbeatMetrics)
throws IOException
wavefrontSender - Wavefront sender via proxy.discoveredHeartbeatMetrics - Discovered heartbeats.IOExceptionpublic static void reportHeartbeats(com.wavefront.sdk.common.WavefrontSender wavefrontSender,
Set<com.wavefront.sdk.common.Pair<Map<String,String>,String>> discoveredHeartbeatMetrics,
@Nonnull
String secondaryComponent)
throws IOException
wavefrontSender - Wavefront sender via proxy.discoveredHeartbeatMetrics - Discovered heartbeats.secondaryComponent - Secondary component value need to be sent in heartbeats
metric.IOExceptionCopyright © 2022. All rights reserved.