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

NH-91598: set otlp metrics exporter configurations #266

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Conversation

cleverchuk
Copy link
Contributor

Tl;dr: add SW_APM_EXPORT_METRICS_ENABLED configuration option

Context:

This PR adds configuring of OTel metrics export when the new configuration option is set via environment or the config file. Additional changes where made in the CI config to fix a bug and to clean disk space. The disk clean up was added because of warning from Github action about low disk space that was causing some jobs to fail as a result.

We also refactored the configuration machinery to use signal specific configuration option for the protocol to avoid inadvertently wiring up of none needed signal export machinery that always fails. Additional unit and integration tests were added

Test Plan:
Test services data 0, 1 and 2

@cleverchuk cleverchuk requested a review from a team as a code owner September 26, 2024 23:59
String serviceKey = (String) container.get(ConfigProperty.AGENT_SERVICE_KEY);
String apiKey = ServiceKeyUtils.getApiKey(serviceKey);

String dataCell = "na-01";

Choose a reason for hiding this comment

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

nit: would it be possible to have these static variables and the collector endpoint parsing logic in a shared location for logs and traces exporter?

@cleverchuk cleverchuk merged commit 6392f24 into main Sep 27, 2024
24 checks passed
@cleverchuk cleverchuk deleted the cc/NH-91598 branch September 27, 2024 16:19
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.

2 participants