This repository was archived by the owner on Feb 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +33
-5
lines changed
spring-native-configuration/src/main
java/org/springframework/boot/actuate/autoconfigure/metrics Expand file tree Collapse file tree 3 files changed +33
-5
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2019-2022 the original author or authors.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * https://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ package org .springframework .boot .actuate .autoconfigure .metrics ;
18+
19+ import org .springframework .nativex .hint .NativeHint ;
20+ import org .springframework .nativex .hint .TypeHint ;
21+ import org .springframework .nativex .type .NativeConfiguration ;
22+
23+ @ NativeHint (trigger = MetricsAutoConfiguration .class , types = {
24+ @ TypeHint (types = {
25+ org .springframework .boot .actuate .autoconfigure .metrics .ServiceLevelObjectiveBoundary .class
26+ }, access = {})
27+ })
28+ public class MetricsAutoConfigurationHints implements NativeConfiguration {
29+ }
Original file line number Diff line number Diff line change 1919import org .springframework .boot .actuate .autoconfigure .metrics .export .properties .PropertiesConfigAdapter ;
2020import org .springframework .boot .actuate .autoconfigure .metrics .export .simple .SimplePropertiesConfigAdapter ;
2121import org .springframework .boot .actuate .metrics .MetricsEndpoint ;
22- import org .springframework .nativex .hint .TypeAccess ;
2322import org .springframework .nativex .hint .NativeHint ;
23+ import org .springframework .nativex .hint .TypeAccess ;
2424import org .springframework .nativex .hint .TypeHint ;
2525import org .springframework .nativex .type .NativeConfiguration ;
2626
2727// Hitting /metrics endpoint - needs tests
2828@ NativeHint (trigger = MetricsEndpointAutoConfiguration .class , types = {
2929 @ TypeHint (types = {
3030 PropertiesConfigAdapter .class ,
31- SimplePropertiesConfigAdapter .class ,
32- org .springframework .boot .actuate .autoconfigure .metrics .ServiceLevelObjectiveBoundary .class ,
33- org .springframework .boot .actuate .autoconfigure .metrics .ServiceLevelObjectiveBoundary [].class ,
31+ SimplePropertiesConfigAdapter .class
3432 }),
3533 @ TypeHint (types = {
3634 MetricsEndpoint .class ,
4139 }, access = { TypeAccess .DECLARED_METHODS , TypeAccess .DECLARED_FIELDS })
4240})
4341public class MetricsEndpointAutoConfigurationHints implements NativeConfiguration {
44- }
42+ }
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ org.springframework.boot.actuate.autoconfigure.health.HealthEndpointAutoConfigur
4444org.springframework.boot.actuate.autoconfigure.info.InfoEndpointAutoConfigurationHints,\
4545org.springframework.boot.actuate.autoconfigure.jolokia.JolokiaEndpointAutoConfigurationHints,\
4646org.springframework.boot.actuate.autoconfigure.metrics.MetricsEndpointAutoConfigurationHints,\
47+ org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfigurationHints,\
4748org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusEndpointAutoConfigurationHints,\
4849org.springframework.boot.actuate.autoconfigure.startup.StartupEndpointAutoConfigurationHints,\
4950org.springframework.boot.actuate.autoconfigure.web.mappings.MappingsEndpointAutoConfigurationHints,\
You can’t perform that action at this time.
0 commit comments