You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* rename handler to OtelScoutHandler
* delete otelLoggingManager class module
* bump version to 1.0.0
* remote deprecated otel logger tests
* use x-scout-key as header
We recommend setting up the `OtelScoutHandler` using Python's [`dictConfig`](https://docs.python.org/3/library/logging.config.html#logging.config.dictConfig). Here's an example configuration:
25
+
We recommend setting up the `ScoutOtelHandler` using Python's [`dictConfig`](https://docs.python.org/3/library/logging.config.html#logging.config.dictConfig). Here's an example configuration:
26
26
27
27
```python
28
28
import logging
29
29
from logging.config import dictConfig
30
-
from scout_apm_python_logging importOtelScoutHandler
30
+
from scout_apm_python_logging importScoutOtelHandler
> Alternative logging configurations are covered in our [documentation](/https://scoutapm.com/docs/features/log-management#common-configurations-python)
81
+
80
82
## Configuration
81
83
82
-
The `OtelScoutHandler` only requires `service_name` to be supplied to the handler as an argument:
84
+
The `ScoutOtelHandler` only requires `service_name` to be supplied to the handler as an argument:
83
85
84
86
If the `scout-apm` is [configured](https://scoutapm.com/docs/python#some-configuration-required) (You've set your `SCOUT_KEY`, etc), you'll only need add your `SCOUT_LOGS_INGEST_KEY` to whichever configuration you are already using. This can also be set as an environment variable.
85
87
86
-
Make sure to set the `SCOUT_LOGS_INGEST_KEY` variable before running your application.
88
+
Make sure to set the `SCOUT_LOGS_INGEST_KEY` variable in the above configuration before running your application.
87
89
88
90
## OpenTelemetry
89
91
90
92
The Scout APM Python Logging Agent leverages [OpenTelemetry Python](https://github.com/open-telemetry/opentelemetry-python) to provide powerful and standardized logging capabilities. OpenTelemetry is an observability framework for cloud-native software, offering a collection of tools, APIs, and SDKs for generating, collecting, and exporting telemetry data (metrics, logs, and traces).
91
93
92
-
Our `OtelScoutHandler` utilizes the OpenTelemetry Python SDK to:
94
+
Our `ScoutOtelHandler` utilizes the OpenTelemetry Python SDK to:
93
95
94
96
1. Create a `LoggerProvider` with a custom resource that includes your service name and instance ID.
95
97
2. Set up an OTLP (OpenTelemetry Protocol) exporter configured to send logs to Scout's ingestion endpoint.
0 commit comments