This repository was archived by the owner on Aug 9, 2025. It is now read-only.
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive OpenTelemetry (OTel) observability support to the project, implementing tracing for HTTP requests, GraphQL operations, database queries, and background jobs. The changes enable monitoring and debugging capabilities across the entire application stack.
- Implements OpenTelemetry tracing middleware for HTTP, GraphQL, and River job processing
- Adds database query tracing through wrapped SQL drivers
- Provides configurable exporter support (console, OTLP) with environment variable configuration
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| metrics/otel/otel.go | Core OpenTelemetry SDK initialization with configurable exporters and middleware creation |
| metrics/otel/graphql.go | GraphQL-specific tracing extension for gqlgen with field-level instrumentation |
| jobs/river/river_jobs.go | Integration of OpenTelemetry middleware into River job processing |
| go.mod | Addition of OpenTelemetry dependencies and version updates |
| dbutil/db.go | Database connection utilities with optional OpenTelemetry SQL tracing |
Contributor
|
Moved all code to tlv2 repo for now. Once the api and details have been stabilized it can be moved to transitland-mw. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
to support https://github.com/interline-io/tlv2/pull/174