Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for elastic APM tracer #1551

Closed
wants to merge 1 commit into from

Conversation

fatmcgav
Copy link
Contributor

@fatmcgav fatmcgav commented Jan 5, 2022

This adds support for tracing via Elastic APM using the OpenTracing framework.

Why?

Adding support for Elastic APM provides users with an alternative backend to visualise Job failures, metrics etc.

Credit to @goodspark for putting the initial OpenTracing framework in-place. That made this implementation very simple :)

Changes

  • Add support for the elastic tracing backend using the go.elastic.co/apm package.
  • Ran go mod tidy to fix some go.mod issues.
  • Log the agent.BuildVersion() as part of the Starting buildkite-agent... log line for better visibility.

Examples

image
This shows a simple "Hello World" job that clones a specific Git repo and then runs a command.

image
A failed job with associated error events.

This adds support for tracing via Elastic APM using the OpenTracing
framework.

\## Why?

Adding support for Elastic APM provides users with an alternative
backend to visualise Job failures, metrics etc.

\## Changes

* Add support for the `elastic` tracing backend using the
  `go.elastic.co/apm` package.
* Ran `go mod tidy` to fix some `go.mod` issues.
@fatmcgav
Copy link
Contributor Author

fatmcgav commented Jan 9, 2022

This could be superceded by #1548...

@pda
Copy link
Member

pda commented Jan 24, 2022

Thanks very much @fatmcgav 🙏🏼
You're right that the OpenTelemetry replacement in #1548 is most likely to replace our OpenTracing metrics.
I see you've been testing that branch but haven't had success yet.
Are you happy for us to close this one and carry on discussion over there?
(Feel free to re-open this if not)

@pda pda closed this Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants