-
Notifications
You must be signed in to change notification settings - Fork 9
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
Collect telemetry #258
Conversation
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); |
There was a problem hiding this comment.
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);?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the new role
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.