137 questions
Advice
0
votes
0
replies
31
views
Open telemetry upgrade
I have been using:
"@opentelemetry/api": "=1.4.1", "
@opentelemetry/exporter-jaeger": "^1.13.0",
"@opentelemetry/instrumentation-express": &...
1
vote
1
answer
105
views
OpenTelemetry / Spring Boot — class-loading issue with helper class
I am using Java 21, Spring Boot 3.3.12, Otel java agent 2.21.0 and a simple Product Service application.
Below is my application's Dockerfile:
FROM openjdk:21-jdk-slim
WORKDIR /app
ARG JAR_FILE=...
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, ...
1
vote
0
answers
41
views
Exporting OpenTelemetry to Azure Monitor and elsewhere
I have a project that uses Serilog to write the logs to a file and to the console. I want to implement logging/tracing with OpenTelemetry and export that telemetry to Azure Monitor.
However, if I ...
0
votes
0
answers
129
views
Uvicorn not getting trace id from otel in error logs (trace_id=0)
I have a test FastAPI application:
from fastapi import FastAPI, Request
from opentelemetry.exporter.otlp.proto.grpc import trace_exporter
from opentelemetry.instrumentation.asgi import ...
1
vote
0
answers
228
views
Grafana Tempo not receiving OpenTelemetry traces from .NET services - only /health and /metrics traces visible
I have a multi-service .NET application running in Docker Compose with Grafana Tempo for distributed tracing. While Tempo is running and accessible, I'm only seeing traces for /health and /metrics ...
0
votes
0
answers
35
views
How to extract labels/custom metadata from a virtual machine in GCP in otelcol-contrib package
We have custom metadata/labels on GCP virtual machines that we plan to add as a label to the OTEL collector.
However, don't see how to extract it by referring to https://github.com/open-telemetry/...
0
votes
1
answer
86
views
SQL Server user permissions needed for OpenTelemetry collector sqlserverreceiver
I have an otel collector file like this:
receivers:
sqlserver:
collection_interval: 30s
server: "your-sqlserver-host" # Use 'server' instead of 'endpoint'
port: ...
0
votes
0
answers
113
views
Setup otel-collector to send internal logs and traces to Grafana Loki and Tempo?
I have been trying to get the latest version (0.128.0) to send its internal logs and traces to my Tempo and Loki instances.
Has anyone managed to get this working?
Would be great to get a sample of ...
0
votes
0
answers
61
views
Semantic kernel OTel metrics in Blazor
I have a Blazor server application using Semantic Kernel and OTel. I'd like to send Semantic Kernel metrics to Application Insights. Here's my code:
AppContext.SetSwitch("Microsoft.SemanticKernel....
0
votes
0
answers
46
views
OpenTelemetry within a .Net console application without ServiceCollection. TraceProvider and MeterProvider need to live through the app lifecycle
I have a .NET console application where I want to add Open telemetry traces to be sent to Grafana. The app does not use Service Collection and DI. Instead we use the AppBuilder for all the application ...
1
vote
1
answer
92
views
Issue with Casting `TraceContext` in `micrometer-tracing-test` Library
Description:
I am encountering an issue while working with the micrometer-tracing-test library in a Java project.
Map<String, String> baggageFromParent = ((SimpleTraceContext) context)....
0
votes
1
answer
102
views
How to filter logs/traces in OTEL and Azure Monitor Exporter .NET
I've been trying to find how to filter logs/traces of different levels to specific destinations. A destination and filter rule would be
Write everything to stdout (For viewing in logs in container ...
1
vote
0
answers
420
views
OpenTelemetry Collector to Loki: "Max entry size exceeded" error when sending large logs
I'm using OpenTelemetry Collector with the Loki exporter to send logs from my applications. Some of my logs are quite large (300 KB+), and Loki throws this error:
error internal/queue_sender.go:128 ...
1
vote
0
answers
662
views
OpenTelemetry Lambda Extension Failing to Start with "otelcol state is Closed"
i'm trying to set up OpenTelemetry (OTel) for my AWS Lambda function (ts) using the AWS Lambda layer. However, the OTel extension fails to start, and I see the following errors in the logs:
{
"...
0
votes
1
answer
150
views
otel-collector to scrap multiple pods [closed]
I would like to use otel-collector to scrap multiple business pods.
This solution is already working for one (but just one) pod:
kubectl get pods
mycoolbusinesspod-7b4f8f4c4f-74sqq 1/1 Running 0
The ...
0
votes
0
answers
33
views
Error when sending traces from exporter to APM server in lambda
I have setup my lambda function to send traces to APM server and I am seeing these errors in the cloudwatch logs
opentelemetry.exporter.otlp.proto.http.metric_exporter - Failed to export batch code: ...
0
votes
0
answers
175
views
Opentelemetry Collector isn't able to send PHP application logs/metrics/traces to Grafana
I have followed the following documentation - https://opentelemetry.io/docs/zero-code/php/ to send logs/traces/metrics to Grafana using opentelemetry-collector from a php application and verified the ...
0
votes
0
answers
119
views
Golang - Opentelemtry logging output without json
I'm new to golang.
Trying to export logs to otel-collector but output is coming in json.
Everything is working fine with Otel v1.34.0
For testing locally otel-collector, loki, grafana is also ...
0
votes
1
answer
128
views
How to View OpenTelemetry Traces and Metrics for AWS Lambda Using X-Ray and CloudWatch?
I'm trying to set up OpenTelemetry for an AWS Lambda function to view traces and metrics using AWS X-Ray and CloudWatch. I'm following the steps for adding the AWS OpenTelemetry Lambda Layer and ...
-1
votes
1
answer
41
views
lambda not sending traces to APM server
I have a lambda function that has ADOT layer arn:aws:lambda:eu-central-1:901920570463:layer:aws-otel-python-amd64-ver-1-29-0:1. This is my collector config
receivers:
otlp:
protocols:
grpc:...
2
votes
1
answer
189
views
The ILogger category name is not available in Application Insights when using Azure.Monitor.OpenTelemetry.AspNetCore in ASP.NET Core application
I'm using the Azure.Monitor.OpenTelemetry.AspNetCore OTEL package to emit telemtry to Application Insights for an ASP.NET Core application (.NET 8).
Within Application Insights, I don't see the "...
1
vote
0
answers
64
views
OpenTelemetry Collector not exporting data to JaegerUI
Github: https://github.com/Subhasree01/SampleProject/tree/master
I have an exporter running at port 4317 on localhost and OTEL setup is deployed using docker-compose using below docker compose file.
...
0
votes
1
answer
82
views
otel java agent unable to export to collector - docker
I'm running JPetStore6 with no code otel java agent and otel collector in the same docker container. Everything starts, but jpet is unable to export data to the collector, despite they are in the same ...
0
votes
1
answer
961
views
How can add labels on grafana with loki and otel collector agent
I am trying to add labels in Grafana for my Kubernetes logs. I am using OpenTelemetry Collector Agent to send logs to Loki, and I want to include labels like service, container_name, and pod_name.
...
0
votes
0
answers
43
views
OTEL Http Instrumentation in NodeJS SEA (Single Executable Application)
I have an backend microservice (NodeJs). That is build for Desktop and Cloud.
We recently added Otel Tracing to our services. We just use Http Instrumentation to get basic spans with node build in ...
0
votes
1
answer
198
views
Importing Otel from file
Disclaimer: I haven't used the otel collector before.
I am trying out a system where I can export Otel to a file, then re-import that contents of the file into an Otel collector (otel/opentelemetry-...
0
votes
1
answer
346
views
Otel collector router expr regex matching
I have the following otel collector config:
receivers:
filelog/nginx/1:
include:
- /opt/nginx/log/access.log
include_file_path: true
include_file_name: false
operators:
- ...
1
vote
0
answers
249
views
OTLP receiver missing exported metrics
I’m trying to push OTel metrics into Prometheus according to https://prometheus.io/docs/guides/opentelemetry/.
I’m running prometheus:v3.0.1 docker image locally, here is the full config
prometheus:
...
0
votes
0
answers
131
views
Export Open Telemetry Collector (otel contrib) export logs to a file instead of event viewer
I have the following definition in Open Telemetry Collector (otel contrib) config.yaml, and this writes the 'error' level logs into the Event Viewer.
example screenshot
service:
telemetry:
...
0
votes
1
answer
175
views
Error installing nginx-module-otel package from dnf, cannot find libcares.so.2
Description
I am trying to install nginx-module-otel on RHEL9 but it can not find libcares.so.2 and is failing as follows:
[root@6c96e0f290a0 c-ares-1.34.4]# dnf install nginx-module-otel
Updating ...
0
votes
0
answers
165
views
Rust OTEL Hello-World not emiting spans to OTEL Collector
I want to be able to trace my application and look at them in Jaeger (Exported to from OTEL Collector).
From what I can tell this is because of a few reasons. It seems OTEL and Jaeger have split and ...
0
votes
0
answers
118
views
.net 8 - Migration from AppMetrics to Meter - OpenTelemetry => High CPU
We are monitoring the duration of rate of error of some methods in our code.
To do that, we use an AOP Attribute (using Postsharp) and AppMetrics to store the metrics in a Postgresql server.
...
0
votes
0
answers
93
views
How to get Spring boot 3 - otel - opentelemetry - collector work?
I am following this open telemetry example, starting from cloning section - The OpenTelemetry Spring Boot starter in action.
git clone https://github.com/spring-projects/spring-petclinic.git
mvn -...
0
votes
0
answers
100
views
Can't get active span in Express instrumentation
I am trying to instrument OTel in JavaScript. I am getting this error: TypeError: Cannot read properties of undefined (reading 'spanContext')
otel.js:
const { PrometheusExporter } = require("@...
0
votes
0
answers
60
views
How to rename http metric in OTEL JS
I have many java applications and they have been instrumented with Micrometer(SpringBoot natively support it). They send metric to OTLP Mimir.
I have a NodeJS application which I want to instrument ...
2
votes
1
answer
693
views
prometheus - ingesting otel metrics drops histograms
I am collecting OpenTelemetry (OTEL) metrics from my services, forwarding them to an OTEL Collector, and then sending them to Prometheus through the OTEL endpoint. Here is a sample OTEL Collector ...
3
votes
0
answers
109
views
How do I collect the CPU info of the application in OTEL implementations using Go SDK?
I am implementing OTEL instrumention in our application. I need to view the CPU usage, but the given runtime info only provides the memory info not the CPU. How can we get this?
runtime.Start(runtime....
0
votes
0
answers
35
views
Tracing deduplicated function invocations with OpenTelemetry
I have a job-queuing system where all jobs are identified by the hash of their arguments. This means that if three different functions all try to make a call with the same arguments, the call only ...
0
votes
1
answer
214
views
How to start/continue an activity across boundaries in .NET 8
I have some micro-services running a bunch of workloads, and I'm trying to trace the "route" of a given workload. I'm using .NET Aspire, and have the 3 background worker projects added and a ...
1
vote
1
answer
29
views
Any way to specify type of returned variable if that type is not exported by API in typescript?
I'm working with the OpenTelemetry SDK in typescript.
I want to have a simple class like this:
import { MeterProvider } from "@opentelemetry/sdk-metrics"
class MyClass {
private meter : ...
4
votes
0
answers
289
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
1
answer
557
views
Spring Boot starter - OTEL cannot send data to otel-collector
I do have very basic configuration of Spring Boot (3.4.0) application with opentelemetry-spring-boot-starter and otel collector.
Unfortunately when I try to send metrics and logs to local Otel ...
2
votes
2
answers
569
views
Otel Collector, TailSampling and SpanName
I'm trying to use OTEL Collector to filter out Traces from being emitted to my store.
I am using otel/opentelemetry-collector-contrib:latest, with tail_sampling
I have an event which runs about 1200 ...
0
votes
0
answers
126
views
AWS Otel exporter fails to reach OpenSearch ingestion pipeline
I had a working otel with aws-otel-collector and opensearch ingestion pipeline for a year. I stopped the pipeline, after a few days, started it again.
I now see the following error:
{
"service&...
0
votes
0
answers
170
views
how to configure otel.javaagent to print logs in JSON format
I'm using otel.javaagent to instrument my code and I'm using JUL(java.util.logging) for logging.
I have defined a custom JsonFormatter for my console logging and have registered in logging.properties ...
0
votes
0
answers
120
views
Why am I unable to assign an PeriodicExportingMetricReader instance to an otel SdkConficguration
I am trying to build a bespoke OTEL package for our internal applications, but run into a weird type mismatch error, that I cannot explain to myself.
export class OtelConfigurator {
otelEndpoint: ...
0
votes
0
answers
65
views
Otel-collector not able to accept rabbitmq-prometheus plugin metrics
I am working on apache skywalking with OAP, otel collector, banyandb. I want rabbitmq-prometheus metrics (http://localhost:15692/metrics/) should scraped and export by the OTel Collector. At the end i ...
1
vote
1
answer
638
views
Spring Boot 3.3+ and Open Telemetry export to Google Cloud Trace?
I'm trying to get Open Telemetry to export traces from my Spring Boot 3.3.5 application running on GKE.
I've tried follow the guide here which says to use:
<dependencyManagement>
<...
0
votes
1
answer
848
views
Using Otel in .Net 8 Console/Worker Application
Fellows,
Using otel in Api application works and the setup is easy.
But i would like to use otel in console application and get metrics from the application like CPU usage, memory, heap and etc..
...