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

opentelemetry plugin #178

Merged
merged 3 commits into from
Nov 4, 2024
Merged

opentelemetry plugin #178

merged 3 commits into from
Nov 4, 2024

Conversation

brig
Copy link
Contributor

@brig brig commented Oct 16, 2024

plugin configuration is set as the default task variables for the opentelemetry task

opentelemetry:
  enabled: true
  endpoint: "http://tempo-distributor.local:4318/v1/traces"   # OTLP traces endpoint
  link: "https://monitoring.example.com/explore?left=%7B%22range%22%3A%7B%22from%22%3A%22now-7d%22%2C%22to%22%3A%22now%22%7D%2C%22datasource%22%3A%22tempo_traces%22%2C%22queries%22%3A%5B%7B%22query%22%3A%22<traceId>%22%2C%22queryType%22%3A%22traceql%22%7D%5D%7D" # optional link template where to find traces...
Screenshot 2024-10-16 at 11 18 03

@brig brig requested a review from a team October 16, 2024 15:18
pom.xml Outdated
@@ -52,6 +52,7 @@
<module>tasks/terraform</module>
<module>tasks/xml</module>
<module>tasks/zoom</module>
<module>tasks/opentelemetry</module>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be in /plugins/runtime/opentelementry, IMO. First of its kind :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, yeah, why not :)

@brig brig force-pushed the brig/opentelemetry-plugin branch from c984bf8 to 32f4aba Compare October 16, 2024 15:20
Comment on lines 75 to 90
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
</dependency>
Copy link
Collaborator

Choose a reason for hiding this comment

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

jackson deps can be provided scope

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should mention somewhere in the documentation what dependencies and how can be used in plugins :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

We kind of do mention it but I agree we need to give a more explicit here-exactly-what's-provided .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, right, I didn't notice :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we need maven plugin for concord plugins :)
so maven plugin can verify that everything is ok with plugin...

import javax.inject.Named;

@Named
public class OpentelemetryModule implements com.google.inject.Module {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public class OpentelemetryModule implements com.google.inject.Module {
public class OpentelemetryModule implements Module {

@ibodrov
Copy link
Collaborator

ibodrov commented Oct 29, 2024

Let's add a README.md with the usage instructions. We can link to https://www.jaegertracing.io/docs/1.62/getting-started/#all-in-one or w/e for a local collector.

@ibodrov ibodrov merged commit 3f0b236 into master Nov 4, 2024
1 check passed
@ibodrov ibodrov deleted the brig/opentelemetry-plugin branch November 4, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants