Skip to content

Returning the http response status code and error message from HttpExporter.export( ) #6306

@galahad098

Description

@galahad098

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
In my implementation of the OtlpHttpSpanExporter, I want to access the http response status code and error message in case the export fails. Internally, the HttpExporter.export( ) method returns a CompletableResultCode response indicating successful or failed export and logs the status code and error message. I would like to know if it's possible to return this information from the exporter.

Describe alternatives you've considered
An alternative would be to write a custom exporter which returns all the required info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestSuggest an idea for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions