-
Couldn't load subscription status.
- Fork 2
Add test setup for collector endpoint and logging #341
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
Conversation
Create the `django5-celery-integration-collector` test setup as a copy of the existing `django5-celery` test setup. This commit does not modify anything from the existing test setup, and is provided separately for cleaner diffs in further commits that will modify the test setup.
Add the collector to the Docker Compose file, as well as the collector endpoint environment variable.
Add an endpoint that emits logs using the `logging` library, which is now automatically instrumented when using the collector endpoint.
|
✔️ All good! |
|
To clarify: longer term, this test setup should not exist, as the Python integration is fully migrated to the collector. But for now, this makes it easy to test a setup that behaves differently from both the integration in default (agent) mode, and from an OpenTelemetry stack configured manually. |
python/django5-celery-integration-collector/app/appsignal_python_opentelemetry/urls.py
Show resolved
Hide resolved
This is a message from the daily scheduled checks. |
.../django5-celery-integration-collector/app/appsignal_python_opentelemetry/templates/home.html
Show resolved
Hide resolved
…on_opentelemetry/templates/home.html Co-authored-by: Tom de Bruijn <[email protected]>
See appsignal/appsignal-python#247 for collector endpoint and logging support.
Copy
django5-celerytest setupCreate the
django5-celery-integration-collectortest setup as acopy of the existing
django5-celerytest setup.This commit does not modify anything from the existing test setup,
and is provided separately for cleaner diffs in further commits that
will modify the test setup.
Add collector to Django integration setup
Add the collector to the Docker Compose file, as well as the collector
endpoint environment variable.
Add
/logsendpoint to test logging integrationAdd an endpoint that emits logs using the
logginglibrary, whichis now automatically instrumented when using the collector endpoint.