All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.instrumentation.quartz.v2_0.QuartzSpanNameExtractor Maven / Gradle / Ivy

There is a newer version: 2.8.0-alpha
Show newest version
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.instrumentation.quartz.v2_0;

import io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor;
import org.quartz.JobExecutionContext;
import org.quartz.JobKey;

final class QuartzSpanNameExtractor implements SpanNameExtractor {
  @Override
  public String extract(JobExecutionContext job) {
    JobKey key = job.getJobDetail().getKey();
    return key.getGroup() + '.' + key.getName();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy