-
Notifications
You must be signed in to change notification settings - Fork 70
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
Vhvapm 444 #1653
Vhvapm 444 #1653
Conversation
...ctit-ocelot-core/src/main/java/rocks/inspectit/ocelot/core/metrics/MeasureTagValueGuard.java
Show resolved
Hide resolved
...e/src/main/java/rocks/inspectit/ocelot/core/metrics/tagGuards/PersistedTagsReaderWriter.java
Outdated
Show resolved
Hide resolved
...c/test/java/rocks/inspectit/ocelot/core/metrics/tagGuards/PersistedTagsReaderWriterTest.java
Outdated
Show resolved
Hide resolved
...ctit-ocelot-core/src/main/java/rocks/inspectit/ocelot/core/metrics/MeasureTagValueGuard.java
Outdated
Show resolved
Hide resolved
...c/test/java/rocks/inspectit/ocelot/core/metrics/tagGuards/PersistedTagsReaderWriterTest.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/rocks/inspectit/ocelot/core/metrics/tagGuards/PersistedTagsReaderWriter.java
Outdated
Show resolved
Hide resolved
… and fix the logic, using reader and writer instead of bytes
...ctit-ocelot-core/src/main/java/rocks/inspectit/ocelot/core/metrics/MeasureTagValueGuard.java
Outdated
Show resolved
Hide resolved
...ctit-ocelot-core/src/main/java/rocks/inspectit/ocelot/core/metrics/MeasureTagValueGuard.java
Outdated
Show resolved
Hide resolved
...ctit-ocelot-core/src/main/java/rocks/inspectit/ocelot/core/metrics/MeasureTagValueGuard.java
Outdated
Show resolved
Hide resolved
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.
- nothing to add from my side related to the code
- have a look at the tests --> it failed (Edit Edi: Probably flaky test)
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.
LGTM. Only one small change and it's finished :)
TagGuardSettings tagGuardSettings = env.getCurrentConfig().getMetrics().getTagGuard(); | ||
if (!tagGuardSettings.isEnabled()) { | ||
log.error("Filename is not set. Not able to be writing tags."); | ||
return 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.
Das wird bereits vor getFilename()
in isNotWritable()
geprüft. Kann raus.
Merged in #1656 |
This change is