Skip to content

Commit

Permalink
Use slog instead of logr (#1080)
Browse files Browse the repository at this point in the history
* Use slog instead of logr

* Default to using OTEL_LOG_LEVEL

* Update the changelog

* Fix merge
  • Loading branch information
MrAlias authored Sep 18, 2024
1 parent 567526e commit effdec9
Show file tree
Hide file tree
Showing 37 changed files with 262 additions and 716 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ OpenTelemetry Go Automatic Instrumentation adheres to [Semantic Versioning](http
- Add gRPC status code attribute for client spans (`rpc.grpc.status_code`). ([#1044](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1044))
- Support `google.golang.org/grpc` `1.68.0-dev`. ([#1044](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1044))
- Support `go.opentelemetry.io/[email protected]`. ([#1044](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1044))
- The `WithLogger` `InstrumentationOption` is added as a replacement for `WithLogLevel`.
An `slog.Logger` can now be configured by the user any way they want and then passed to the `Instrumentation` for its logging with this option. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))
- Support `google.golang.org/grpc` `1.66.2`. ([#1083](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1083))

### Changed
Expand All @@ -40,6 +42,17 @@ OpenTelemetry Go Automatic Instrumentation adheres to [Semantic Versioning](http
- Fix dirty shutdown caused by panic. ([#980](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/980))
- Flush pending span exports on shutdown. ([#1028](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1028))

### Removed

- `WithLogLevel` is removed.
Use `WithLogger` instead. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))
- The unused `LogLevelDebug` constant is removed. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))
- The unused `LogLevelInfo` constant is removed. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))
- The unused `LogLevelWarn` constant is removed. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))
- The unused `LogLevelError` constant is removed. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))
- The unused `LogLevel` type is removed. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))
- The unused `ParseLogLevel` function is removed. ([#1080](https://github.com/open-telemetry/opentelemetry-go-instrumentation/pull/1080))

## [v0.14.0-alpha] - 2024-07-15

### Added
Expand Down
201 changes: 0 additions & 201 deletions LICENSES/github.com/go-logr/zapr/LICENSE

This file was deleted.

19 changes: 0 additions & 19 deletions LICENSES/go.uber.org/multierr/LICENSE.txt

This file was deleted.

19 changes: 0 additions & 19 deletions LICENSES/go.uber.org/zap/LICENSE

This file was deleted.

Loading

0 comments on commit effdec9

Please sign in to comment.