-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logging support for opentelemetry (#752)
* Initial commit * Map LogLevel to Severity * Add test case for filterLogLevel * Add docs for Logging * Add multiple loggers test case * Make opentelemetry-example work with Fluentbit backend * Fix otel logger in example * Rename OpenTelemetryContextStorage * Remove seq's data and logs * fmt * Rename private method end to endCurrentSpan * Finish with opentelemetry-example (jaeger and seq) * Update opentelemetry.md docs * Add example for logback appender in instrumentation example * Fix examples compilation
- Loading branch information
Showing
36 changed files
with
731 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,4 @@ backend { | |
port = 9000 | ||
} | ||
|
||
tracer { | ||
host = "http://localhost:4317" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[INPUT] | ||
name opentelemetry | ||
listen 0.0.0.0 | ||
port 4318 | ||
|
||
[OUTPUT] | ||
name stdout | ||
match * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
opentelemetry-example/src/main/scala/zio/telemetry/opentelemetry/example/JaegerTracer.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lemetry-example/src/main/scala/zio/telemetry/opentelemetry/example/config/AppConfig.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package zio.telemetry.opentelemetry.example.config | ||
|
||
final case class AppConfig(proxy: ProxyConfig, backend: BackendConfig, tracer: TracerConfig) | ||
final case class AppConfig(proxy: ProxyConfig, backend: BackendConfig) |
3 changes: 0 additions & 3 deletions
3
...etry-example/src/main/scala/zio/telemetry/opentelemetry/example/config/TracerConfig.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.