change the operation name for the metric
This commit is contained in:
parent
a2e0269826
commit
e22079123c
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ import software.amazon.kinesis.schemaregistry.SchemaRegistryDecoder;
|
||||||
@KinesisClientInternalApi
|
@KinesisClientInternalApi
|
||||||
public class ProcessTask implements ConsumerTask {
|
public class ProcessTask implements ConsumerTask {
|
||||||
private static final String PROCESS_TASK_OPERATION = "ProcessTask";
|
private static final String PROCESS_TASK_OPERATION = "ProcessTask";
|
||||||
private static final String APPLICATION_LEVEL_METRICS = "ApplicationLevelMetrics";
|
private static final String APPLICATION_TRACKER_OPERATION = "ApplicationTracker";
|
||||||
private static final String DATA_BYTES_PROCESSED_METRIC = "DataBytesProcessed";
|
private static final String DATA_BYTES_PROCESSED_METRIC = "DataBytesProcessed";
|
||||||
private static final String RECORDS_PROCESSED_METRIC = "RecordsProcessed";
|
private static final String RECORDS_PROCESSED_METRIC = "RecordsProcessed";
|
||||||
private static final String RECORD_PROCESSOR_PROCESS_RECORDS_METRIC = "RecordProcessor.processRecords";
|
private static final String RECORD_PROCESSOR_PROCESS_RECORDS_METRIC = "RecordProcessor.processRecords";
|
||||||
|
|
@ -118,7 +118,7 @@ public class ProcessTask implements ConsumerTask {
|
||||||
* therefore all data added to appScope, although from different shard consumer, will be sent to the same metric,
|
* therefore all data added to appScope, although from different shard consumer, will be sent to the same metric,
|
||||||
* which is the app-level MillsBehindLatest metric.
|
* which is the app-level MillsBehindLatest metric.
|
||||||
*/
|
*/
|
||||||
final MetricsScope appScope = MetricsUtil.createMetricsWithOperation(metricsFactory, APPLICATION_LEVEL_METRICS);
|
final MetricsScope appScope = MetricsUtil.createMetricsWithOperation(metricsFactory, APPLICATION_TRACKER_OPERATION);
|
||||||
final MetricsScope shardScope = MetricsUtil.createMetricsWithOperation(metricsFactory, PROCESS_TASK_OPERATION);
|
final MetricsScope shardScope = MetricsUtil.createMetricsWithOperation(metricsFactory, PROCESS_TASK_OPERATION);
|
||||||
shardInfo.streamIdentifierSerOpt()
|
shardInfo.streamIdentifierSerOpt()
|
||||||
.ifPresent(streamId -> MetricsUtil.addStreamId(shardScope, StreamIdentifier.multiStreamInstance(streamId)));
|
.ifPresent(streamId -> MetricsUtil.addStreamId(shardScope, StreamIdentifier.multiStreamInstance(streamId)));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue