Skip to content

[Bug]: PDO::connect hook missing peerServiceSources configuration #3966

@redpanda

Description

@redpanda

Bug report

The PDO integration inconsistently sets peerServiceSources across different hooks, preventing peer
service mapping from working on connection spans.

Current Behavior

  • PDO::exec, PDO::query, PDO::prepare hooks set peerServiceSources ✅
  • PDO::connect hook does NOT set it ❌

Result: Peer service mapping works for query execution but fails for connection initialization.

Expected Behavior
All PDO hooks should set peerServiceSources to enable consistent peer service mapping.

PHP version

8.5

Tracer or profiler version

1.16.0

Installed extensions

No response

Output of phpinfo()

No response

Upgrading from

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions