Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/FISH-7278-MicroProfile-6.1' in…
Browse files Browse the repository at this point in the history
…to FISH-7776-adding-last-version-of-mp-specs-6.1
  • Loading branch information
breakponchito committed Oct 5, 2023
2 parents 24d3f2c + 5a750a9 commit da984fe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
6 changes: 0 additions & 6 deletions api/payara-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,6 @@
<version>${opentelemetry.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api-logs</artifactId>
<version>${opentelemetry.alpha26.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-sdk-extension-autoconfigure-spi</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,13 @@ private boolean isWebServiceMethod(InvocationContext invocationContext, Invocati
private String getWithSpanValue(final InvocationContext invocationContext, final WithSpan withSpan) {
final String withSpanValue = withSpan.value();
if (withSpanValue.isEmpty()) {
return invocationContext.getMethod().getDeclaringClass().getCanonicalName()
+ "." + invocationContext.getMethod().getName();
if (invocationContext.getMethod().getDeclaringClass().getName().contains("$")) {
return invocationContext.getMethod().getDeclaringClass().getSimpleName()
+ "." + invocationContext.getMethod().getName();
} else {
return invocationContext.getMethod().getDeclaringClass().getCanonicalName()
+ "." + invocationContext.getMethod().getName();
}
}
return withSpanValue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void spanChild() {
spanBean.spanChild();
var spans = exporter.getSpans();
assertEquals(2, spans.size());
assertEquals("fish.payara.samples.otel.annotation.SpanBean.SpanChildBean.spanChild", spans.get(0).getName());
assertEquals("SpanChildBean.spanChild", spans.get(0).getName());
assertEquals("fish.payara.samples.otel.annotation.SpanBean.spanChild", spans.get(1).getName());
assertEquals(spans.get(0).getParentSpanId(), spans.get(1).getSpanId());
}
Expand Down
1 change: 0 additions & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@
<trilead-ssh2.version>build-217-jenkins-16</trilead-ssh2.version>
<opentelemetry.version>1.29.0</opentelemetry.version>
<opentelemetry.alpha.version>1.29.0-alpha</opentelemetry.alpha.version>
<opentelemetry.alpha26.version>1.26.0-alpha</opentelemetry.alpha26.version>
<testng.version>7.4.0</testng.version>
<bouncycastle-jdk15on.version>1.64</bouncycastle-jdk15on.version>
<jsftemplating.version>3.0.0</jsftemplating.version>
Expand Down

0 comments on commit da984fe

Please sign in to comment.