-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add logging signal to main #2251
Conversation
* use timeout in force_flush * fix lint * Update opentelemetry-sdk/src/opentelemetry/sdk/logs/export/__init__.py Co-authored-by: Srikanth Chekuri <[email protected]> * fix lint Co-authored-by: Srikanth Chekuri <[email protected]>
Co-authored-by: Srikanth Chekuri <[email protected]>
* Fix exception with warning message transformation * Fix lint * Fix lint
* Demonstrate how to set the Resource for LogEmitterProvider Added a Resource to the logs example to make it more complete. Previously it was using the built-in Resource. Now it adds the service.name and service.instance.id attributes. The resulting emitted log records look like this: ``` Resource labels: -> telemetry.sdk.language: STRING(python) -> telemetry.sdk.name: STRING(opentelemetry) -> telemetry.sdk.version: STRING(1.5.0) -> service.name: STRING(shoppingcart) -> service.instance.id: STRING(instance-12) InstrumentationLibraryLogs #0 InstrumentationLibrary __main__ 0.1 LogRecord #0 Timestamp: 2021-10-14 18:33:43.425820928 +0000 UTC Severity: ERROR ShortName: Body: Hyderabad, we have a major problem. Trace ID: ce1577e4a703f42d569e72593ad71888 Span ID: f8908ac4258ceff6 Flags: 1 ``` * Fix linting
* move logs to _logs * fix lint
opentelemetry-sdk/src/opentelemetry/sdk/environment_variables.py
Outdated
Show resolved
Hide resolved
It appears I cannot update the branch. Looks like branch protection is preventing me from doing so. @open-telemetry/python-maintainers |
@owais yeah i think you'll have to disable branch protection to be able to update the branch :( |
I'm not sure which setting I need to change to remove this so I temporarily disabled it, updated and enabled again. |
BTW is this branch good to be merged? Should I enable auto-merge? |
@owais its good to go as far as i know. |
@owais @codeboten it looks like this got squashed into 7c90cf4 instead of rebase and merged? |
doh :( |
This reverts commit 7c90cf4.
Revert change here: #2260 |
Description
The following PR adds experimental signal support for logging. Note to maintainers: please remember to not squash this change.
Part of #1890
Not marking that issue as fixed until this signal is no longer experimental.
Type of change
Please delete options that are not relevant.
Does This PR Require a Contrib Repo Change?
Checklist: