Skip to content

Support OpenTelemetry instrumentation - #16

Merged
fpringle merged 7 commits into
mainfrom
fpringle/support-opentelemetry
Sep 22, 2026
Merged

fpringle merged 7 commits into
mainfrom
fpringle/support-opentelemetry

Conversation

@fpringle

@fpringle fpringle commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

After #15, we can now very easily add support for OpenTelemetry instrumentation in a "first-class" way.
Namely, we simply provide an alternative PostgreSQL interpreter runPostgreSQLOT that uses the functions from hs-opentelemetry-instrumentation-postgresql-simple instead of postgresql-simple. This means the user can choose which interpreter they want to use (with or without OpenTelemetry), even at runtime e.g. according to a configuration file.

This PR also removed tested-with support for GHC 8.*, since it was causing build failures in dependencies and I can't be bothered to figure out why. If anyone desperately wants GHC 8.* support and wants to do the work for it they can open a PR.

@fpringle
fpringle added this pull request to stack #17 September 18, 2026 09:16
@fpringle fpringle linked an issue Sep 18, 2026 that may be closed by this pull request
Base automatically changed from fpringle/dynamic-postgresql-effect to main September 22, 2026 09:02
@fpringle
fpringle force-pushed the fpringle/support-opentelemetry branch from 268c8a4 to 92e0b78 Compare September 22, 2026 09:03
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.

Is this a good integration point for hs-opentelemetry-postgres-simple?

1 participant