Skip to content

Commit f1c3bca

Browse files
authored
feat: Enable OTel metrics and logs (#1802)
Update OTel endpoint env variable.
1 parent a128392 commit f1c3bca

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cli/src/main/java/org/jboss/sbomer/cli/feature/sbom/utils/otel/OtelCLIUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class OtelCLIUtils {
3232
public static final String OTEL_TRACE_ID_ENV_VARIABLE = "TRACE_ID";
3333
public static final String OTEL_SPAN_ID_ENV_VARIABLE = "SPAN_ID";
3434
public static final String OTEL_TRACEPARENT_ENV_VARIABLE = "TRACEPARENT";
35-
public static final String OTEL_EXPORTER_OTLP_ENDPOINT_ENV_VARIABLE = "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT";
35+
public static final String OTEL_EXPORTER_OTLP_ENDPOINT_ENV_VARIABLE = "OTEL_EXPORTER_OTLP_ENDPOINT";
3636
public static final String SBOMER_SERVICE_NAME = "sbomer";
3737
public static final String SBOMER_CLI_NAME = "sbomer-cli";
3838

service/src/main/resources/application-prod.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ quarkus:
7676
traces:
7777
enabled: true
7878
sampler: always_on
79+
metrics:
80+
enabled: true
81+
logs:
82+
enabled: true
7983

8084
http:
8185
cors:

0 commit comments

Comments
 (0)