-
|
Hello everyone! I'm writing a java-agent-extension that implements a The configurer roughly looks like the following: import com.google.auto.service.AutoService;
import io.opentelemetry.exporters.otlp.OtlpGrpcSpanExporter;
import io.opentelemetry.sdk.autoconfigure.spi.SdkTracerProviderConfigurer;
import io.opentelemetry.sdk.trace.SdkTracerProviderBuilder;
@AutoService(SdkTracerProviderConfigurer.class)
public class DemoSdkTracerProviderConfigurer implements SdkTracerProviderConfigurer {
@Override
public void configure(SdkTracerProviderBuilder sdkTracerProviderBuilder) {
sdkTracerProviderBuilder
.addSpanProcessor(new CustomSpanProcessor(OtlpGrpcSpanExporter.getDefault()));
}
}My test application is made with Quarkus. I have added the java-agent and my agent-extension into the docker image and extended the When running the application through my docker compose I get an error from opentelemetry. Is there a way to define a receiver with the setup I have? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
I think I answered the question myself. Instead of using a If anyone needs any clarification, feel free to ask! |
Beta Was this translation helpful? Give feedback.

I think I answered the question myself.
Instead of using a
OtlpGrpcSpanExporterI am using aJaegerGrpcSpanExporternow. For that I had to set the endpoint or channel. This caused the Jaeger Backend to display duplicate spans. I fixed that by simple setting the env-variable-Dotel.traces.exporter=none.If anyone needs any clarification, feel free to ask!