Skip to content

AGE-417 : add interface + struct to support otel native integration for postgresql#279

Open
mw-advait wants to merge 1 commit intomasterfrom
mw-advait/AGE-417/master/extend-postgresql-integration
Open

AGE-417 : add interface + struct to support otel native integration for postgresql#279
mw-advait wants to merge 1 commit intomasterfrom
mw-advait/AGE-417/master/extend-postgresql-integration

Conversation

@mw-advait
Copy link
Member

🎯 AGE-417: Add interface + struct support for OTEL native PostgreSQL integration

This PR introduces an interface-based abstraction to support OTEL native integration for PostgreSQL, enabling custom receiver configuration handling while preserving default behavior for other integrations.

The goal is to allow gradual rollout of structured integrations without breaking or refactoring existing map-based integrations.

Summary

  • This PR introduces structured support for OTEL native PostgreSQL integration while preserving existing behavior for other integrations.

Changes

  • Added Integration interface with UpdateReceiverConfig contract.
  • Introduced typed IntegrationConfig and Postgresql configuration structs.
  • Implemented PostgreSQL-specific receiver mutation logic, including:
    • Required field validation (username, password)
    • TLS validation
    • Default handling for query and connection pool settings
  • Refactored updateConfig to accept IntegrationType and apply integration-aware logic.
  • Preserved existing generic merge behavior for non-structured integrations.
  • Updated unit tests to reflect new method signature.

Impact

  • No breaking changes.
  • Existing MongoDB, MySQL, and Redis and all other integrations continue to work as before.
  • Establishes foundation for gradual migration to structured, OTEL-native integrations.

@mw-advait mw-advait changed the title AGE-417 : add interface + struct to support + otel native integration for postgresql AGE-417 : add interface + struct to support otel native integration for postgresql Feb 15, 2026
@mw-advait mw-advait force-pushed the mw-advait/AGE-417/master/extend-postgresql-integration branch from 647e2a0 to b10e8e5 Compare February 15, 2026 18:52
@mw-advait mw-advait closed this Feb 16, 2026
@mw-advait mw-advait reopened this Feb 16, 2026
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.

1 participant