Skip to content

Go tracer: prevent duplicate traceparent injection in HTTP/2 and GRPC #2769

Description

@mariomac

Component

OBI (eBPF instrumentation)

What happened?

Followup action for bug #2732 and PR #2752.

Pull request #2752 verifies whether an instrumented Golang client (using the net standard package) is already injecting the Traceparent header in HTTP/1.x. If so, we prevent OBI from injecting again another traceparent and potentially breaking the instrumentation.

We should extend this behaviour to other tracer implementations. In this case, fixing duplicate client-side traceparent injection in generic HTTP/2.x or GRPC tracers.

Unlike #2276, which makes explicit reference to not injecting traceparents if context_propagation is disabled, this issue addresses the actual duplication of traceparents when context_propagation is enabled.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions