From b8ebbb3a0500c65833216949aca09755560fd42f Mon Sep 17 00:00:00 2001 From: Maksym Ochenashko Date: Sun, 10 Nov 2024 12:00:53 +0200 Subject: [PATCH] Fix compilation issue --- .../typelevel/otel4s/oteljava/trace/TracerSuite.scala | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/oteljava/all/src/test/scala/org/typelevel/otel4s/oteljava/trace/TracerSuite.scala b/oteljava/all/src/test/scala/org/typelevel/otel4s/oteljava/trace/TracerSuite.scala index da8936037..e0f96b145 100644 --- a/oteljava/all/src/test/scala/org/typelevel/otel4s/oteljava/trace/TracerSuite.scala +++ b/oteljava/all/src/test/scala/org/typelevel/otel4s/oteljava/trace/TracerSuite.scala @@ -26,8 +26,8 @@ import io.opentelemetry.sdk.common.InstrumentationScopeInfo import io.opentelemetry.sdk.testing.time.TestClock import io.opentelemetry.sdk.trace.SdkTracerProviderBuilder import io.opentelemetry.sdk.trace.SpanLimits +import io.opentelemetry.sdk.trace.data.ExceptionEventData import io.opentelemetry.sdk.trace.data.StatusData -import io.opentelemetry.sdk.trace.internal.data.ExceptionEventData import org.typelevel.otel4s.Attributes import org.typelevel.otel4s.context.propagation.TextMapPropagator import org.typelevel.otel4s.oteljava.AttributeConverters._ @@ -94,12 +94,7 @@ class TracerSuite extends BaseTracerSuite[Context, Context.Key] { val exception = new RuntimeException("error") with NoStackTrace def expected(epoch: Long) = - ExceptionEventData.create( - SpanLimits.getDefault, - epoch, - exception, - JAttributes.empty() - ) + ExceptionEventData.create(epoch, exception, JAttributes.empty(), 0) TestControl.executeEmbed { for {