|
| 1 | +/*Copyright (c) 2026 Oracle and/or its affiliates. |
| 2 | +
|
| 3 | +The Universal Permissive License (UPL), Version 1.0 |
| 4 | +
|
| 5 | +Subject to the condition set forth below, permission is hereby granted to any |
| 6 | +person obtaining a copy of this software, associated documentation and/or data |
| 7 | +(collectively the "Software"), free of charge and under any and all copyright |
| 8 | +rights in the Software, and any and all patent rights owned or freely |
| 9 | +licensable by each licensor hereunder covering either (i) the unmodified |
| 10 | +Software as contributed to or provided by such licensor, or (ii) the Larger |
| 11 | +Works (as defined below), to deal in both |
| 12 | +
|
| 13 | +(a) the Software, and |
| 14 | +(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if |
| 15 | +one is included with the Software (each a "Larger Work" to which the Software |
| 16 | +is contributed by such licensors), |
| 17 | +
|
| 18 | +without restriction, including without limitation the rights to copy, create |
| 19 | +derivative works of, display, perform, and distribute the Software and make, |
| 20 | +use, sell, offer for sale, import, export, have made, and have sold the |
| 21 | +Software and the Larger Work(s), and to sublicense the foregoing rights on |
| 22 | +either these or other terms. |
| 23 | +
|
| 24 | +This license is subject to the following condition: |
| 25 | +The above copyright notice and either this complete permission notice or at |
| 26 | +a minimum a reference to the UPL must be included in all copies or |
| 27 | +substantial portions of the Software. |
| 28 | +
|
| 29 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 30 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 31 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 32 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 33 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 34 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 35 | +SOFTWARE. |
| 36 | + */ |
1 | 37 | package com.oracle.demo.timg.iot.iotdbjdbc.messagehandler.outputs.http.normalizeddata.timeseriesdb.otlp; |
2 | 38 |
|
3 | 39 | import static io.micronaut.http.HttpHeaders.AUTHORIZATION; |
|
18 | 54 | import io.micronaut.runtime.event.annotation.EventListener; |
19 | 55 | import jakarta.inject.Inject; |
20 | 56 | import lombok.extern.java.Log; |
21 | | - |
22 | | -//@ClientFilter(patterns = { "${" + TimeSeriesDBProperties.TIME_SERIES_PROPERTY_METRICS_PATH + ":/tel/v1/metrics}", |
23 | | -// "${" + TimeSeriesDBProperties.TIME_SERIES_PROPERTY_METRICS_PATH + ":/tel/v1/metrics}/**" }) |
24 | 57 | @ClientFilter(patterns = "/tel/v1/metrics", serviceId = OtlpProperties.METRICS_CLIENT_ID) |
25 | 58 | @Requires(property = TimeSeriesDBProperties.TIME_SERIES_PROPERTY_ENABLED, value = "true", defaultValue = "false") |
26 | 59 | @Requires(property = "micronaut.http.services.timeseriesmetrics.url") |
|
0 commit comments