75 questions
Best practices
0
votes
0
replies
31
views
How to Return a Custom Tracer from OpenTelemetrySDK using an OTel Agent Extension?
I am running a Java application with an OpenTelemetry JavaAgent for auto-instrumentation.
For my use case, I would like to create an agent extension that introduces a new, additional Tracer. The new ...
0
votes
1
answer
84
views
Duplication of count metric caused by scheduler running on multiple pod
Background: We are fetching the total number of tenants from the database and pushing a metric via a scheduler to Dynatrace using OpenTelemetry spring boot starter. Since there are three replica pods, ...
0
votes
1
answer
62
views
Toggling export of OTLP tracing not working with GraalVM native images
To make the export work at all for a native image build, it needs to be enabled during AOT processing. So we have this for the profile used for the build:
management.otlp.tracing.export.enabled: true
...
3
votes
1
answer
205
views
Create an extra trace representing the "time spent inside Kafka" using Spring Kafka / OpenTelemetry
I'm working with a Spring Boot Kafka consumer that uses OpenTelemetry for tracing.
Currently, I have a single span that covers the entire message processing, but I want to create a separate, an extra ...
1
vote
1
answer
255
views
HttpExporter : Failed to export logs
I try to disable opentelemetry exporter in my local spring profile.
In application-local.yaml I have:
opentelemetry:
sdk:
disable: true
instrumentation:
enabled: false
exporter:
otlp:...
0
votes
0
answers
109
views
"Provider io.opentelemetry.exporter.otlp.internal.OtlpSpanExporterProvider not found" in native mode
I'm trying to integrate OpenTelemetry in a Quarkus application, to export TRACES via OTLP, using "http/protobuf" as protocol. When I run the application in pure-java mode, even in dev-mode, ...
2
votes
0
answers
159
views
Issue in propagation of Trace context among Kafka clients
I am building Java + Springboot application to consume Kafka messages from a topic and publish it to other topic. The same message is also consumed by another similar application which does the same ...
0
votes
2
answers
165
views
How do I instrument a non-supported IBMMQ/Jms service within an instrumented Spring Boot App without using Otel Java Agent?
Note: I am not using Otel Java Agent, I will elaborate on it in the last section.
I have a Spring Boot App with the following services implemented:
Spring Kafka Consumer using org.springframework....
0
votes
0
answers
24
views
Database service from openTelemetry codes
Due to some architectural limitation i was not able install oneagent from the dynatrace. So as an alternate option i have implemented the application with the opentelemetry codes to get the traces and ...
0
votes
0
answers
139
views
How to Add OpenTelemetry Tracing to NiFi Custom Processors?
I have a NiFi flow that includes various custom processors to collect data from Kafka, perform calculations, and store results in a database. I want to add OpenTelemetry tracing to gain better ...
2
votes
2
answers
717
views
Springboot Gradle Open Telemetry dependency error
I have a Java 17, SpringBoot with gradle application, and I'm trying to add dependencies for opentelemetry instrumentation.
I am getting java.lang.ClassNotFoundException: io.opentelemetry.api....
1
vote
1
answer
186
views
Otel Extension with External Libraries
What am I doing ?
trying to create a Otel Extension and everything is working fine until the moment I use external libraries.
Relevant context information:
I am using Maven instead of Gradle.
I don'...
1
vote
0
answers
156
views
Issue migrating OpenTelemetry for Java from v1.42.1 to >=1.44.0
I'm getting following error while trying to migrate OTel in my spring boot application from OTel version 1.42.1 (no issues publishing the metrics) to 1.44.1. But, getting the following error.
Mar 07, ...
0
votes
0
answers
95
views
SpanProcessor not invoked on all spans
I would like to register a SpanProcessor that adds the current baggage as span attributes.
I have declared a configuration bean as follows:
@Bean
public AutoConfigurationCustomizerProvider provider() {...
0
votes
0
answers
287
views
Trace_id and Span_id are not auto injected while using OpenTelemetry Spring Boot Starter
I am using the OTEL Spring Boot starter
https://opentelemetry.io/docs/zero-code/java/spring-boot-starter/
and trying to auto inject logs as per https://github.com/open-telemetry/opentelemetry-java-...
0
votes
0
answers
40
views
Trace Generation using Open Telemetry Spring Boot Starter
I am using the Spring Boot Open Telemetry Starter as mentioned here to trace calls between APIs.
https://opentelemetry.io/docs/zero-code/java/spring-boot-starter/
A sample code looks like this:
@...
0
votes
0
answers
59
views
Add autoinstrumentation with OpenTelemetry when not using SpringBoot
I have an AWS Lambda function that I am developing in Java.
I am using the pacakge io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdk to set up telemetry and I use it like this:
public ...
0
votes
1
answer
153
views
spring boot 3, with @Scheduled, and io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter keep using same trace id again and again?
Spring boot 3.4.2 with:
io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter
Managed by:
mavenBom("io.opentelemetry:opentelemetry-bom:1.46.0")
and
mavenBom("io....
1
vote
0
answers
284
views
What OTEL features are enabled by otel.instrumentation.common.default-enabled=true?
I am seeing high cpu consumed when I enabled the default OTEL agent settings via
otel.instrumentation.common.default-enabled=true
I want to pin point which feature is accounting for the excessive cpu ...
0
votes
0
answers
20
views
Unable to log child span from DB / External api calls in application Logs using opentelementry
When I invoke an external api call from my microservice , a new spanID (which is reflecting jaeger but not in App logs) is getting generated
but I am unable to print the new spanID in my applictaion ...
2
votes
0
answers
65
views
Spring Boot and OpenTelemetry show only the first level of trace in the Jaeger UI
I am developing a project using Spring Boot and OpenTelemetry, but when I send traces to Jaeger, I only see the first level of the trace.
docker-compose
# https://www.jaegertracing.io/docs/2.2/...
0
votes
2
answers
402
views
OpenTelemetry matching versions (Java)
To use open telemetry with spring, the following seems to be needed
the opentelemetry java api
the opentelemetry java agent
the opentelemetry collector.
All of these have different version schemes, ...
1
vote
1
answer
479
views
Intermittent Traces with Micrometer, OpenTelemetry, and Spring Boot
I'm setting up distributed tracing in my Spring Boot application using Micrometer Tracing and OpenTelemetry to send data to an OpenObserve instance, but I'm facing issues where traces are being ...
1
vote
1
answer
195
views
Missing opentelemetry-java SERVER span with nested span
I'm seeing some odd behavior with opentelemetry-java (via SmallRye OpenTelemetry). For some context, this is running in the WildFly application server, which integrates smallrye-opentelemtry for its ...
4
votes
0
answers
292
views
How to capture method-level traces in OpenTelemetry with Spring Boot Starter for Zero-code instrumentation?
I am trying to integrate OpenTelemetry with my existing Spring Boot application using the Zero-code instrumentation Spring Boot Starter. I followed the official documentation and configured the ...
0
votes
0
answers
60
views
Unable to send Counters to Dynatrace via OTLP
I am using an Open Telemtery JAVA SDK to publish some metrics an OTEL sink like Dynatrace. I am sending gauges, updown counters etc. to dynatrace and see that UpDown Counters are successuflly pushed, ...
0
votes
0
answers
72
views
Unable to build the project with opentelementery extention
I have spring boot project which is on version 2.7.7. We have some dependency on otel telementery for that we have used some part of build.gradle like below.
id "com.github.johnrengelman....
0
votes
0
answers
174
views
OpenTelemetry trace not propagating from Spring Boot 3.2.1 (opentelemetry-javaagent 2.10) to Airflow 2.10.2 REST API
I am using Spring Boot 3.2.1 with the opentelemetry-javaagent 2.10 for zero-code instrumentation. I also have Apache Airflow 2.10.2 set up with OpenTelemetry configured.
When my Spring Boot ...
0
votes
1
answer
610
views
opentelemetry missing trace
I am trying the opentelemetry auto-instrumentation. But it appears that the trace is being lost when using CompletableFuture.handle. Could anyone please assist me with this issue?
@GetMapping("/...
0
votes
0
answers
371
views
Springboot Opentelemetry service name
We are using Springboot and micrometer based implementation for Opentelemetry with Jaeger as the collector. Everything works as expected in terms of sending the traces to Jaeger. One of the ...
1
vote
1
answer
783
views
Auto instrumentation: how to include full URL path and query string not just http.route
Is it possible to get the Open Telemetry auto instrumentation to include the full URL path and query string (i.e. either the full URL or the entire URL after the protocol, host and port) rather than ...
2
votes
0
answers
630
views
opentelemetry Spring boot starter is not injecting spanId and traceId to MDC
So I am trying to configure my spring boot app to use OpenTelemetry Spring boot starter. I'm using logback for logging, and I'm using application.yml for application configuration.
When calling the ...
2
votes
0
answers
496
views
Springboot 3 Micrometer tracing Issue
We are using Springboot 3.1.4 and i have been trying to leverage the Micrometer based approach for distrubted tracing of the application. I have included the right build.gradle dependencies but the ...
0
votes
1
answer
384
views
Filter out dependency telemetry with applicationinsights javaagent 3.5.4
I have an EAP7 application running in OpenShift with a javaagent attached with application insights (Azure). I have followed the guide for filtering telemetry and configuring the agent with the guide: ...
0
votes
1
answer
110
views
Add attributes to target info metric only?
How do I add attributes to the target info metric without adding them to spans?
This code will add attributes to both the target info metric and all the spans:
AutoConfiguredOpenTelemetrySdk.builder
...
2
votes
0
answers
86
views
How to get internal Spring Boot framework metrics and enhanced observability with OpenTelemetry?
I've been exploring the OpenTelemetry documentation and see that there are two primary methods for enabling OpenTelemetry in Java applications: using the Java Agent Bytecode approach or integrating ...
2
votes
0
answers
134
views
OpenTelemetry not logging in structured json format for Spring Boot application
I have springboot application and I want to log the request/response/headers as single json object as defind below
https://opentelemetry.io/docs/concepts/signals/logs/#structured-logs
Is there any ...
0
votes
1
answer
95
views
quarkus automatic opentelemetry span creation for smallrye applications
Quarkus provides a quickstart project for opentelemety integration showing how you can automatically create a span of kind Client or Server inside an http application.
In the same way, can quarkus ...
1
vote
0
answers
149
views
Unique Id is not getting generated via Open Telemetry. Getting repeated trace Id after 10 iterations
I'm implementing OpenTelemetry in my project and created a bean as follows
@Bean
public static OpenTelemetry openTelemetry() {
Resource resource = Resource.getDefault();
SdkTracerProvider ...
0
votes
1
answer
299
views
New Trace and Span Generated even after using TraceId and SpanID from Remote Context
I am injecting the spanId and traceId flowing via HTTP header to to build a remote context and creating new Span, however the new span does not get the parent trace and span but created its own trace ...
-1
votes
1
answer
67
views
OpenTelemetry Java Agent extension not loaded
I have created a simple, dummy OpenTelemetry Java Agent extension. It contains only one class and it looks like this:
import com.google.auto.service.AutoService;
import io.opentelemetry.sdk....
0
votes
1
answer
149
views
OpenTelemetry Only Emit traces when service restarted
Below is my Otel implementation to instantiate the OpenTelemetry SDKs for Metrics & Traces. I found that Metrics are getting emitted whenever application requests are getting served but Traces are ...
0
votes
1
answer
836
views
SpringBoot Opentelemetry
I am trying to enable opentelemetry for one of our SpringBoot services. I was able to invoke it by adding the below to the build.gradle
implementation 'io.opentelemetry:opentelemetry-bom:1.39.0'
...
0
votes
1
answer
248
views
OpenTelemetry agent logging WARN message for (Instrument db.client.connections.max has recorded multiple values for the same attributes)
I have a application where it connects to two mutiple databases. One is IBM DB2 and one is Postgres.
In the logs I seen multiple WARN messages that says following:
[otel.javaagent 2024-07-02 14:06:33:...
1
vote
0
answers
49
views
Opentelemetry in java
How can i enable opentelemetry in java app. Looking for auto instrumentation. Below is my Dockerfile.
Detailed step view would be appreciated.
Dockerfile
FROM openjdk:17
FROM eclipse-temurin:17-jdk-...
0
votes
0
answers
358
views
Otel Java Agent Instrumentation
I have maven Java Spring Application. I'm trying to implement otel java agent instrumentation to set span with custom attributes.
I have mentioned the below JVM args in Tomcat configuration
-javaagent:...
1
vote
0
answers
1k
views
Set custom trace ID with Spring Boot 3, Micrometer and OTEL
I have two proprietary microservices (A and B) and a third-party one (C), both consuming and producing Kafka events.
A produces event1, and B consumes it.
B processes event1 and eventually delegates ...
1
vote
1
answer
1k
views
After replacing datadog java agent with the opentelemetry java agent, metrics are not flowing to the datadog backend
We have datadog setup in our organisation for monitoring.
We use datadog to check the metrics and view the exception. We don't use it to see the logs.
We are planning to replace the datadog javaagent ...
2
votes
1
answer
385
views
Open telemetry equivalent of statsd "metric expiry"
I have a java service instrumented with the open telemetry java-agent.
The java-agent is sending the traces and metrics to an open telemetry collector.
And the open telemetry collector is sending the ...
8
votes
2
answers
9k
views
How to bridge OpenTelemetry (opentelemetry-java-instrumentation) and Micrometer
My set-up:
Spring boot app based on version 3.1.3
Added dependency spring-boot-starter-actuator
Added custom metric MyHealthMetricsExportConfiguration according to the documentation (shown below)
...