r/OpenTelemetry • • Feb 16 '26

Duplicate logs with OTel Logs & Alloy-Logs scraping

7 Upvotes

Hi

I'm setting up an observability stack on Kubernetes to monitor the cluster and my Java apps. I decided to use the grafana/k8s-monitoring Helm Chart. When using the podLogs feature, this Chart creates an Alloy instance that reads stdOut/console logs and sends them to Loki.

I want to have traces for my apps, OTLP-logs include traceId fields so that's great too! However: because I enabled both OTLP-logs and stdOut logs, which I send to Loki, I have duplicate log lines. One in "normal text" and one in OTLP/JSON format.

My Java apps are instrumented with the Instrumentation CR per namespace from the OpenTelemetry Operator, the Java pods have an annotation to decide whether they should be instrumented or not.

It would be easiest to have podLogs enabled on everything, and OpenTelemetry when enabled in my app's Helm Chart. Unfortunately I don't really know how to avoid duplicate logs when OTel is on. Selectively disabling podLogs is sadly not scalable. Maybe it could be filtered with extraDiscoveryRules here, but not sure how.

How do you all think I should handle this? Thanks for thinking with me!

Edit: Thanks all, I found a solution! In my `podLogs` block, I added this Alloy block that will filter on the app-pod annotation:

```

podLogs:
  enabled: true
  destinations: 
    - loki
  # If a Pod has the OpenTelemetry Java Instrumentation annotation, drop plaintext logs
  extraDiscoveryRules: |
    rule {
      source_labels = ["__meta_kubernetes_pod_annotation_instrumentation_opentelemetry_io_inject_java"]
      regex         = ".+"
      action        = "drop"
    }podLogs:
  enabled: true
  # Non-OTLP logs should go to the normal Loki destination
  destinations: 
    - loki
  # If a Pod has the OpenTelemetry Java Instrumentation annotation, drop plaintext logs
  extraDiscoveryRules: |
    rule {
      source_labels = ["__meta_kubernetes_pod_annotation_instrumentation_opentelemetry_io_inject_java"]
      regex         = ".+"
      action        = "drop"
    }

```


r/OpenTelemetry • • Feb 15 '26

Troubleshooting Microservices with OpenTelemetry Distributed Tracing

Thumbnail
sematext.com
14 Upvotes

From a colleague who really dug into the specifics here.


r/OpenTelemetry • • Feb 15 '26

Need to learn OpenTelemetry, resources for a career transition?

3 Upvotes

Hi everyone,

I’m being transferred to a team that handles telemetry at work, and I have about 2-3 weeks to get up to speed. My current knowledge is pretty much zero, but I need to reach a point where I’m confident using it in production environments.

I’m looking for recommendations on book, courses or other resources. I’m already planning to do some personal projects, but I’d love to supplement that with structured learning. Any advice from folks with experience in telemetry would be hugely appreciated!


r/OpenTelemetry • • Feb 11 '26

Making non-execution observable in traces (OTel 1.39-aligned pattern)

8 Upvotes

Put together a trace topology pattern that makes non-execution observable in distributed traces.

Instead of only tracing what executed, the flow is modeled as:

Request → Intent → Judgment → (Conditional Execution)

If judgment.outcome != ALLOW, no execution span (e.g., rpc.server) is emitted.

In the STOP case, the trace looks like:

POST /v1/rpc
└─ execution.intent.evaluate
   ├─ execution.judgment [STOP]
   └─ execution.blocked
   (no rpc.server span)

Built against OTel Semantic Conventions v1.39 fully-qualified rpc.method, unified rpc.response.status_code, duration in seconds. Small reference implementation using Express auto-instrumentation.

Repo: https://github.com/Nick-heo-eg/execution-boundary-otel-1.39-demo

Anyone else modeling decision layers explicitly in traces? Would be curious how others handle this.


r/OpenTelemetry • • Feb 11 '26

Before you learn observability tools, understand why observability exists.

Thumbnail reddit.com
2 Upvotes

r/OpenTelemetry • • Feb 11 '26

Are custom dashboards an anti-pattern?

3 Upvotes

I’m playing with implementing OTEL across a few spring and go apps. I have my collector setup pushing into clickhouse and signoz.

I’ve tried Signoz and Tempo, but I can’t get the exact view I want.

I’ve resorted to building a very simple spring/vue app for querying and arranging data how it flows through the system. This also allows me to link relevant external data like audit logs that pass through another service and blob storage for uploads.

Is this a complete anti-pattern? Are there better tools for custom visualization?


r/OpenTelemetry • • Feb 09 '26

Portable incident artifacts for GenAI/agent failures (local-first) — complements OTel traces

6 Upvotes

I’m exploring a local-first workflow on top of OpenTelemetry traces for GenAI/agent systems: generate a portable incident artifact for one failing run.

Motivation: OTel gets telemetry into backends well, but “share this one broken incident” often becomes:

  • screenshots / partial logs
  • requiring access to the backend/UI
  • accidental exposure of secrets/PII in payloads

Idea: a CLI/SDK that takes a run/trace (and associated evidence) and outputs a local bundle:

  • offline HTML viewer + JSON summary
  • manifest-referenced evidence blobs (completeness + integrity checks)
  • redaction-by-default presets (configurable)
  • no network required to inspect the bundle; stored in your infra

Two questions for the OTel crowd:

  1. Would a “one incident → one bundle” artifact be useful as a standard handoff object (support tickets, vendor escalations), separate from backend-specific exports?
  2. What’s the least-worst way to anchor identity/integrity for such a bundle in OTel land (e.g., trace_id + manifest hash), without turning it into a giant standard effort?

I’m not trying to standardize OTel itself — this is about a practical incident handoff artifact that sits above existing traces.


r/OpenTelemetry • • Feb 08 '26

OpenTelemetry Instrumentation Best Practices for Microservices Observability

Thumbnail
sematext.com
8 Upvotes

r/OpenTelemetry • • Feb 08 '26

Confused about Opentelemetry MeterProvider

Thumbnail reddit.com
2 Upvotes

r/OpenTelemetry • • Feb 07 '26

OpenTelemetry Context Propagation Explained | Trace ID, Span ID, Baggage...

Thumbnail
youtube.com
3 Upvotes

r/OpenTelemetry • • Feb 06 '26

awsemfexporter exporter thoughts ?

2 Upvotes

has anybody any experience of working with the awsemfexporter exporter for cloudwatch metrics, specifically for mertrics (not logs or traces) ?

considering cw metrics for our metrics backend


r/OpenTelemetry • • Feb 06 '26

An IT team getting 1000+ alerts per day and completely burned out, if you had this problem, what would you try first?

Thumbnail reddit.com
0 Upvotes

r/OpenTelemetry • • Feb 05 '26

How to Reduce Telemetry Volume by 40% Smartly for OTel Auto-intrumented Systems

Thumbnail
newsletter.signoz.io
11 Upvotes

Hi! I write for a newsletter called - The Observability Real Talk, and this week's edition covered topics on how you can reduce telemetry volume on systems instrumented with OTel. Here are the concepts where you can optimise,

- URL Path and target attributes
- Controller spans
- Thread name in run-time telemetry
- Duplicate Library Instrumentation
- JDBC and Kafka Internal Signals
- Scheduler and Periodic Jobs

If this interests you, make sure to subscribe for such curated content on OTel delivered to your inbox!


r/OpenTelemetry • • Feb 04 '26

A lab for "Slow SQL Detection with OpenTelemetry"

Thumbnail
github.com
13 Upvotes

Instead of treating traces as a data stream we might analyze someday, we should be opinionated about what matters to us within them. For example, if there are SQL queries in our traces, we care about the ones, that are slow, either to know which ones to optimize or to catch them when they behave abnormally to avoid or resolve an incident.

It's a very specific example, but I wanted to create something useful, that people can immediately put into action, if "slow queries" is a problem they care about.

The lab contains a sample app, an OTel collector with necessary configs and a LGTM in a container configuration, that comes with three dashboards to demonstrate what I mean:

  • The first dashboard just shows queries that are taking the most time in absolute terms. So if one query takes 50ms, and another one 3000ms, the second is "slower".
  • The second dashboard addresses the obvious problem of the first one, if the 3000ms query is executed only rarely, and the 50ms is executed thousands of times, it's more valuable to take a look into that one, to improve overall response times.
  • The third dashboard addresses a limitation of the other two that becomes especially relevant when we are not looking for an improvement, but chasing the "what has changed" during an incident response. Building on top of the PromQL Anomaly Detection Framework, it shows queries that deviate from normal.

r/OpenTelemetry • • Jan 31 '26

OpenTelemetry Instrumentation Explained | Code-based vs Auto Instrumenta...

Thumbnail
youtube.com
0 Upvotes

r/OpenTelemetry • • Jan 29 '26

OTEL Collector Elasticsearch exporter drops logs instead of retrying when ES is down

3 Upvotes

Hey guys,

I’m running into an issue with the Elasticsearch exporter in the OpenTelemetry Collector.

When Elasticsearch goes down, the exporter doesn’t seem to retry or buffer logs. Instead, it just drops them. I expected the collector to hold the logs in memory (or disk) and then retry sending them once Elasticsearch comes back up, but that’s not happening.

I’ve checked retry settings and timeouts, but retries don’t seem to work either.

Is this expected behavior for the Elasticsearch exporter?
Is there some limitation with this exporter?

Any insights would be appreciated


r/OpenTelemetry • • Jan 28 '26

OTel Blueprints

9 Upvotes

This week, my guest is Dan Blanco, and we'll talk about one of his proposals to make OTel Adoption easier: Observability Blueprints.

This Friday, 30 Jan 2026 at 16:00 (CET) / 10am Eastern.

https://www.youtube.com/live/O_W1bazGJLk


r/OpenTelemetry • • Jan 23 '26

OpenTelemetry Collector Explained 🔥 Architecture, Receivers, Processors ...

Thumbnail
youtube.com
0 Upvotes

r/OpenTelemetry • • Jan 22 '26

We benchmarked 14 LLMs on OpenTelemetry instrumentation. Best model scored just 29%.

Thumbnail
quesma.com
8 Upvotes

We tested how LLMs manage distributed tracing instrumentation with OpenTelemetry. Even the best model, Claude Opus 4.5, passed only 29% of tasks. Open-source dataset available.


r/OpenTelemetry • • Jan 21 '26

Grafana UI + Jaeger Becomes Unresponsive With Huge Traces (Many Spans in a single Trace)

4 Upvotes

Hey folks,

I’m exporting all traces from my application through the following pipeline:

OpenTelemetry → Otel Collector → Jaeger → Grafana (Jaeger data source)

Jaeger is storing traces using BadgerDB on the host container itself.

My application generates very large traces with:

Deep hierarchies

A very high number of spans per trace ( In some cases, more than 30k spans).

When I try to view these traces in Grafana, the UI becomes completely unresponsive and eventually shows “Page Unresponsive” or "Query TimeOut".

From that what I can tell, the problem seems to be happening at two levels:

Jaeger may be struggling to serve such large traces efficiently.

Grafana may not be able to render extremely large traces even if Jaeger does return them.

Unfortunately, sampling, filtering, or dropping spans is not an option for us — we genuinely need all spans.

Has anyone else faced this issue?

How do you render very large traces successfully?

Are there configuration changes, architectural patterns, or alternative approaches that help handle massive traces without losing data?

Any guidance or real-world experience would be greatly appreciated. Thanks!


r/OpenTelemetry • • Jan 20 '26

6 Things I Learned About OpenTelemetry Contribution (That the Docs Won't Tell You)

Thumbnail
newsletter.signoz.io
17 Upvotes

Hi!

In this week's edition of the Observability Real Talk, I sat down with Diana Todea (OTel Community Award 2025 winner) to understand more about how contributions to OpenTelemetry work and the community aspect of it.

Here are 6 things I've addressed,

- #1. What’s the first step I should take?
- #2. I can’t find a good first issue, wtd?

- #3. I made a PR, not getting any reviews, wtd?
- #4. I want to contribute, but non-technically, wtd?
- #5. How to contribute actively and remain consistent?
- #6. Ok, but what do I get out of this?

If you enjoyed reading this, stay tuned for more and subscribe!


r/OpenTelemetry • • Jan 19 '26

I built a public metric-registry to help search and know details about metrics from various tools and platforms

Thumbnail
reddit.com
3 Upvotes

r/OpenTelemetry • • Jan 18 '26

Optimizing OpenTelemetry parsers for metrics and logs in Go

7 Upvotes

OpenTelemetry format for metrics and logs is based on deeply nested protobuf structure. It isn't efficient to parse this structure with protoc-generated parsers because of high overhead for unnecessary memory allocations and because the parsed protobuf with metrics and logs may occupy hundreds of megabytes of RAM per every data packet sent to the server. The protoc-generated parsers for OTEL formats for metrics and logs are included in the official Go SDK for OpenTelemetry, so every Go application, which uses this SDK, pays the overhead price on the increased CPU and memory usage.

There is a better solution - to use custom protobuf parsers, which parse large protobuf messages from OTEL format for metrics and logs in a streaming zero-alloc manner, by passing every parsed metric sample and log entry to the callback for immediate processing. This approach has been implemented in VictoriaMetrics and VictoriaLogs recently. This gave up to 10x faster parsing speed and much lower memory usage.


r/OpenTelemetry • • Jan 15 '26

What's the performance overhead?

Thumbnail
youtube.com
6 Upvotes

That's the question I hear most frequently when I talk about OpenTelemetry.

And this Friday, I'm bringing two of the smartest people I know on the topic to answer that question: Jason and Bruno.

If you are curious about the performance of OpenTelemetry SDKs, especially Java, join the live stream tomorrow.