-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Beholder sdk * Beholder: update comment * Beholder: rename variable * Beholder: add Close function to global * Beholder: export OtelClient struct - make otelClient struct exportable - export fields, remove getters - remove Client interface * Beholder: rename pb test message * Beholder: extract logic to set OTel globals from OtelClient constructor - add new SetGlobals method - refactor Close method - add provider fields * Beholder: make OtelClient.Emit variadic * Beholder: fix test * Fix test * Beholder: change config.ResourceAttributes type * Beholder: improve test for Message attributes * Beholder: remove Exporter field from messageEmitter * Beholder: add onClose callback to shutdown providers * Beholder: use tests.Context(t) * Beholder: OtelAttr print unhandled value * Beholder: update global.Emit * Beholder: add NewMessage constructor to global * Beholder: update example_test * Beholder: Add ForPackage method to OtelClient, remove PackageName field from config * Beholder: remove EmitMessage method * Rename config field Co-authored-by: Jordan Krage <jmank88@gmail.com> * Beholder: pass emitter struct by value to OtelClient * Beholder: add test for noop otel client * Beholder: remove SdkOtelRecord * Beholder: refactor AddAttributes to take list of KV attributes * Beholder: pass context through the example * Beholder: fix typos * Beholder: use simple log processor in tests * Beholder: move SetGlobals to global package * Beholder: make message Attributes to be an alias of map * Beholder: remove code not related to setting globals from 'global' package * Beholder: add example when beholder client is not initialized and noop client is used as a fallback * update go.mod * Beholder: add context to NewOtelClient * Beholder: move global to beholder package * Beholder: revert renaming of Emitter interface * Beholder: remove Client interface, rename OtelClient struct * Beholder: rename Otel Client references * Beholder: handle errors in NewStdoutClient * Beholder: return pointer from Client constructors * Beholder: remove errorHandler parameter from NewClient * Fix test * Beholder: update example test to pass golangci-lint * go mod tidy * Beholder: delete SetOtelErrorHandler, use otel.SetErrorHandler instead * Beholder: prefix global getters with 'Get*' * Beholder: remove StdoutClientOption, rename NewStdoutClient to NewWriterClient * Beholder: make writerClientConfig not exported --------- Co-authored-by: Geert G <117188496+cll-gg@users.noreply.github.com> Co-authored-by: Jordan Krage <jmank88@gmail.com>
- Loading branch information
1 parent
46de70e
commit eec7a23
Showing
20 changed files
with
2,016 additions
and
14 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
Oops, something went wrong.