Skip to content

Use OpenTelemetry with HTTP/gRPC exporters in apm-integration#80762

Merged
elasticsearchmachine merged 3 commits intoelastic:feature/apm-integrationfrom
tlrx:use-http-grpc-with-apm
Nov 17, 2021
Merged

Use OpenTelemetry with HTTP/gRPC exporters in apm-integration#80762
elasticsearchmachine merged 3 commits intoelastic:feature/apm-integrationfrom
tlrx:use-http-grpc-with-apm

Conversation

@tlrx
Copy link
Copy Markdown
Member

@tlrx tlrx commented Nov 16, 2021

This pull request adds support for HTPP/gRPC with the OpenTelemetry SDK in the apm-integration plugin. It adds the required security permissions to the plugin to make it work - we should try to reduce this list one day.

The plumbing to pass Elastic's Cloud APM server credentials is not fully there yet but the current ApmIT test can be executed with -Dtests.apm.endpoint=https://... -Dtests.apm.token=ABC and traces should be sent to Elastic APM.

Works on my machine™

@tlrx tlrx added >enhancement :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. labels Nov 16, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Nov 16, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Copy Markdown
Contributor

@AthenaEryma AthenaEryma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not being at all familiar with the OpenTelemetry API, but having reviewed all the relevant PRs up until this point: LGTM.

Copy link
Copy Markdown
Member

@ywangd ywangd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Just need two more security permissions for allowing exporting data to a Cloud APM server.
I can also confirm the ApmIT teset run successful on my machine.

…security.policy


add permissions

Co-authored-by: Yang Wang <ywangd@gmail.com>
@tlrx tlrx added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Nov 17, 2021
@elasticsearchmachine elasticsearchmachine merged commit d5a2503 into elastic:feature/apm-integration Nov 17, 2021
@tlrx tlrx deleted the use-http-grpc-with-apm branch November 17, 2021 09:33
@tlrx
Copy link
Copy Markdown
Member Author

tlrx commented Nov 17, 2021

Thanks everyone!

Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review, I was having too much fun playing around with it. LGTM2

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

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. >enhancement Team:Distributed Meta label for distributed team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants