-
Notifications
You must be signed in to change notification settings - Fork 17
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 stop-sending option #474
Conversation
custom/src/main/java/co/elastic/otel/ElasticLogRecordExporter.java
Outdated
Show resolved
Hide resolved
custom/src/main/java/co/elastic/otel/config/DynamicConfiguration.java
Outdated
Show resolved
Hide resolved
custom/src/main/java/co/elastic/otel/config/DynamicConfigurationPropertyChecker.java
Outdated
Show resolved
Hide resolved
custom/src/main/java/co/elastic/otel/config/DynamicConfigurationPropertyChecker.java
Outdated
Show resolved
Hide resolved
testing-common/src/main/java/co/elastic/otel/testing/OtelReflectionUtils.java
Outdated
Show resolved
Hide resolved
custom/src/main/java/co/elastic/otel/ElasticAutoConfigurationCustomizerProvider.java
Outdated
Show resolved
Hide resolved
custom/src/main/java/co/elastic/otel/ElasticLogRecordExporter.java
Outdated
Show resolved
Hide resolved
custom/src/main/java/co/elastic/otel/ElasticLogRecordExporter.java
Outdated
Show resolved
Hide resolved
custom/src/main/java/co/elastic/otel/ElasticLogRecordExporter.java
Outdated
Show resolved
Hide resolved
private Boolean recoverySendMetricsState; | ||
|
||
private boolean initSendingStates() { | ||
if (recoverySendSpansState == null && ElasticSpanExporter.getInstance() != 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.
Should we log warning if the exporter instances are null here? This means that the setting might not be correctly respected initially, right?
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.
yes, good call
@AfterEach | ||
public void endTest() throws InterruptedException { | ||
doRequest(getUrl("/dynamicconfig/reset"), okResponseBody("reset")); | ||
Thread.sleep(500L); // give the reset time to be applied |
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.
Is there a reason for using the smoke-tests instead of an integration-test ?
I prefer the integration tests because they are easier to follow, debug and maintain and still run the full agent.
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.
there was a reason which is that I prefer the smoke tests and find the integration tests non-transparent in how they work. Though I take your point they are easier to maintain. And these tests are actually integration testst. I've done an initial pass and found a bug the integration test identified that the smoke tests didn't, so I'll map them over
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.
per discussion (the integration test is unable to handle the exporter wrapping correctly because it has a custom exporter that doesn't go through configuration), staying with the smoke test
No description provided.