Skip to content

Possibility to instrument API calls with Micrometer or OpenTelemetry #1964

Open

Description

@nielsengoncalves

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

It would be great to be able to add instrumentation for all API calls using Micrometer or OpenTelemetry.

Describe the solution you'd like

No response

Describe alternatives you've considered

To work around this limitation, we currently wrap the stripe-java library and manually instrument the requests.

Additional context

No response

Activity

  1. joschi commented on Apr 8, 2025

    @joschi

    I've been looking into the same thing recently.

    If you're using the OpenTelemetry Java Agent, the HttpURLConnection used by the Stripe client should be auto-instrumented and you should be able to at least see the low-level request/response pairs to the Stripe API.

    Other than that, you have to implement your own com.stripe.net.HttpClient and instrument that manually (or use an instrumented low-level HTTP client) for the time being as you apparently did.

    FWIW, here's a list of HTTP client libraries supported by the OpenTelemetry auto-instrumentation:
    https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/v2.14.0/docs/supported-libraries.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions