-
Notifications
You must be signed in to change notification settings - Fork 5
Added resources as runtimeOnly dependency #14
Changes from 2 commits
029b69a
055d056
6853fdc
463c7ef
3475fa3
25292ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.gradle/ | ||
build/ | ||
.env | ||
.idea/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ dependencies { | |
implementation "io.opentelemetry:opentelemetry-exporter-otlp-logs:$otelVersion-alpha" | ||
implementation "io.opentelemetry:opentelemetry-exporter-logging" // only for debug | ||
runtimeOnly("io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0:$otelVersion-alpha") | ||
runtimeOnly "io.opentelemetry.instrumentation:opentelemetry-resources:$otelVersion-alpha" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. might also make sense to describe how the service.name is created from both the manifest and the jar name there. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Took a closer look. Below is the order of precedence for service name
If none of the above are set the Note that |
||
implementation "io.opentelemetry.instrumentation:opentelemetry-micrometer-1.5:$otelVersion-alpha" | ||
implementation "io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:$otelVersion-alpha" | ||
runtimeOnly 'io.micrometer:micrometer-tracing-bridge-otel' | ||
|
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.
great finding - didn't know about that!
Just checked out the implementation, and we should probably also use
InetAddress.getLocalHost().getHostName()
instead ofSystem.getenv("HOSTNAME")
as hereThere 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.
Good point.