Skip to content

Commit 1faf083

Browse files
Reduce the cardinality of mojo span names (#192)
1 parent be003da commit 1faf083

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed
-48.6 KB
Loading
-110 KB
Loading

maven-extension/src/main/java/io/opentelemetry/maven/OtelExecutionListener.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,7 @@ public void mojoStarted(ExecutionEvent executionEvent) {
192192
String spanName =
193193
MavenUtils.getPluginArtifactIdShortName(mojoExecution.getArtifactId())
194194
+ ":"
195-
+ mojoExecution.getGoal()
196-
+ " ("
197-
+ mojoExecution.getExecutionId()
198-
+ ")"
199-
+ " @ "
200-
+ executionEvent.getProject().getArtifactId();
195+
+ mojoExecution.getGoal();
201196
logger.debug("OpenTelemetry: Start mojo execution: span {}", spanName);
202197
SpanBuilder spanBuilder =
203198
this.openTelemetrySdkService

0 commit comments

Comments
 (0)