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

Collect telemetry #258

Merged
merged 15 commits into from
Aug 23, 2024
Merged

Collect telemetry #258

merged 15 commits into from
Aug 23, 2024

Conversation

ricklue
Copy link
Contributor

@ricklue ricklue commented Jul 2, 2024

Created an API to gather telemetry data from OpenTelemetry (https://opentelemetry.io/). When code is instrumented with the OpenTelemetry library, it is possible to use the endpoint from this API to gather it in Ladybug.

pom.xml Outdated Show resolved Hide resolved
@jacodg
Copy link
Contributor

jacodg commented Aug 14, 2024

Can you add info to the README about Ladybug being able to receive OpenTelemetry data? And maybe an example of how to send information to Ladybug using the new API endpoint?

@@ -91,6 +91,7 @@ public void setObserverRoles(List<String> observerRoles) {
addConfigurationPart("PUT/" + ApiServlet.LADYBUG_API_PATH + "/testtool/node-link-strategy$", observerRoles);
addConfigurationPart("GET/" + ApiServlet.LADYBUG_API_PATH + "/metadata/.*$", observerRoles);
addConfigurationPart("GET/" + ApiServlet.LADYBUG_API_PATH + "/report/.*$", observerRoles);
addConfigurationPart("POST/" + ApiServlet.LADYBUG_API_PATH + "/collector/.*$", observerRoles);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to create a separate role. Can you remove this line and add the following below the setTesterRoles() method?

public void setWebServiceRoles(List<String> webServiceRoles) {
	if (constructorDone) log.info("Set web service roles");
	addConfigurationPart("POST/" + ApiServlet.LADYBUG_API_PATH + "/collector/.*$", webServiceRoles);
}

And add setWebServiceRoles(null); below setTesterRoles(null);?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the new role

@jacodg jacodg merged commit 1956413 into master Aug 23, 2024
1 check passed
@jacodg jacodg deleted the collect-telemetry branch August 23, 2024 16:07
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