Urgent.News

What's breaking now, across thousands of outlets.

Tech

Zero-Code OpenTelemetry Tracing for Dagster

If you run Dagster pipelines in production, you've probably wanted distributed tracing at some point — seeing exactly how long each op/asset took, how steps nest across a run, and how a run connects to whatever triggered it (a sensor tick, a CI pipeline, another OTel-instrumented service upstream). A while back I built dagster-otel : a @traced() decorator you stack under @op / @asset , explicit…

Dagster pipelines can now benefit from automatic, zero-code tracing using the opentelemetry-instrumentation-dagster package. This new tool allows for distributed tracing without modifying any pipeline code. To use it, simply install the package, set environment variables for the OpenTelemetry service name and OTEL_EXPORTER_OTLP_ENDPOINT, and run the Dagster command through the opentelemetry-instrument launcher.

This triggers automatic tracing for all @op, @asset, @multi_asset, @asset_check, and @dbt_assets functions in the pipeline, without any explicit decorators or imports. The package achieves this by patching decorator factories, such as dagster.op, dagster.asset, and dagster.multi_asset, before Dagster builds the OpDefinition or AssetsDefinition.

This ensures that tracing occurs automatically, even when processes are spawned in a multi-process execution environment. The package works by inserting a sitecustomize.py file into the PYTHONPATH, which triggers the auto-instrumentation before your code imports the Dagster library. This allows for consistent tracing across all processes, including those spawned by the k8s_job_executor.

However, the @graph_asset decorator is intentionally excluded from this automatic tracing, as its function is a composition function called at definition time and does not receive a runtime context. The package has been thoroughly tested in real infrastructure, including a Kubernetes cluster with Postgres-backed run storage and k8s_job_executor, ensuring its reliability and effectiveness in tracing Dagster pipelines.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Transparent PNGs: the 3 background-removal algorithms, why JPG can't do it, and the color-key gotcha

Every "make this background transparent" tool is doing one of three things under the hood, and picking the wrong one for your picture is why a logo comes back with a hole in it, or the background is…

  • Transparent PNGs use an alpha channel for see-through pixels
  • JPEG lacks transparency support, resulting in black backgrounds
  • Color key algorithm risks removing subject pixels if background color matches

Beyond Localhost MCP

MCP Is Easy Until You Take It to Enterprise Scale Why local MCP workflows eventually need a gateway, governance, identity, and observability layer Every major architectural shift begins with an…

  • Enterprise MCP Wall emerges as scaling challenges arise
  • Security gaps, server sprawl, visibility blind spots, governance hell surface
  • Enterprise MCP Gateway proposed as centralized control plane

More from Tuesday 22 September →