Skip to content

Conversation

@lfagliano
Copy link

@lfagliano lfagliano commented Dec 19, 2025

Description

In this PR I am proposing a new feature to enable dlt compatibility with OpenTelemetry through adding a new collector that just extends the LogCollector and utilices existing dlt components to delineate traces, and to export metrics.

Metrics are kept lean, communicating just total rows, duration, tables extracted and pipelines run. This is so that we don't explode the metrics sent, but also so that it is easier to aggregate across multiple pipeline deployments.

In the traces we enrich them with attributes corresponding to the rows added in tables during the normalized step, which can be parsed with thing such as Tempo, so build single pipeline dashboards.

Furthermore, this is also compatible with other OTeL collectors, which allow us to fully enrich traces with other libraries' telemetry. We have found this was specifically useful with databases and requests, were we can see the traces of requests and database interactions, by just installing the required telemetry libraries. See more at OTeL docs

Related Issues

@lfagliano lfagliano marked this pull request as ready for review December 25, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenTelemetry compatibility through new collector

1 participant