Skip to content

[Proposal] Deprecate TextMapCarrier.Keys #6808

@pellared

Description

@pellared

@open-telemetry/go-maintainers, do you know why TextMapCarrier has a Keys method? It does not look useful at all. I think about adding a comment that we have it just for backwards compatibility...

I have not seen Keys used anywhere besides tests.

I saw this:

If your carrier is reused, you should delete the fields here before calling Inject.

However, I do not see sense in it.

Originally posted by @pellared in #6778 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:propagatorsPart of OpenTelemetry context propagationpkg:APIRelated to an API package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions