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

KTOR-3194 - enable customize default tags in micrometer #2874

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

LucasMilotich
Copy link

Subsystem
Ktor-metrics-micrometer

Motivation
Feature: https://youtrack.jetbrains.com/issue/KTOR-3194

Sometimes you need to override default tags and the only way was using this sentence in MicrometerMetrics installation:
metrics.config().meterFilter(MeterFilter.ignoreTags($tag))

Solution
I've created a default tags field which allows to be overwritten in the configuration class.
Some fields/classes have to be internal in order to allow the client to access and customize tags using the call.

…OR-3194

� Conflicts:
�	ktor-features/ktor-metrics-micrometer/jvm/src/io/ktor/metrics/micrometer/MicrometerMetrics.kt
�	ktor-server/ktor-server-plugins/ktor-server-metrics-micrometer/jvm/test/io/ktor/server/metrics/micrometer/MicrometerMetricsTests.kt
@e5l e5l force-pushed the main branch 2 times, most recently from d084312 to 1ae2c1f Compare April 6, 2022 06:43
@e5l e5l self-assigned this Jan 25, 2024
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.

None yet

2 participants