Skip to content

How does Pinpoint detect and instrument Apache Camel entry points for monitoring? #13931

Description

@phrabit2

I'm currently integrating Pinpoint APM with an application that uses Apache Camel, and I'd like to better understand how pinpoint identifies and monitors Camel entry point.

And If we need to develop a custom Pinpoint plugin for Apache Camel, which classes or interception points would you recommend instrumenting to accurately capture transaction boundaries and trace propagation?

Here's the Sample code below.

rest("/api").post("/ESP_WCS_GNR_REQ_COMMAND")
            .id("ESP_WCS_GNR_REQ_COMMAND")
            .to("direct:forward-command");
    from("direct:forward-command")
            .routeId("req-command")
            .log(LoggingLevel.INFO,"============== [REQ_COMMAND] Receiving Inbound ==============")
            .log(LoggingLevel.INFO,"1. Req Body: ${body}")

            .removeHeaders("CamelHttp*")
            .setHeader(HTTP_CONTENT_TYPE_HEAD, constant(HTTP_CONTENT_TYPE_JSON))

            .to("undertow:http://localhost:8010/command-call")

            .log(LoggingLevel.INFO," Final Response Body: ${body}")

Thanks

Activity

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

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