Skip to content

GTest Printer functions #3364

@yashykt

Description

@yashykt

Is your feature request related to a problem?
I am looking for PrintTo / AbslStringify functions for public types in OpenTelemetry C++ to help with GTest output.

Describe the solution you'd like
What do you want to happen instead? What is the expected behavior?

Currently, without any helper functions, GTest will just print out the raw bytes which is not very helpful.

Describe alternatives you've considered
Which alternative solutions or features have you considered?

Refer grpc/grpc@4327215. GTest requires that PrintTo be defined in the same namespace as the type. I feel uncomfortable declaring something in opentelemetry's namespace even if it is only for test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions