Skip to content
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

Telemetry setup #182

Merged
merged 7 commits into from
Mar 20, 2024
Merged

Telemetry setup #182

merged 7 commits into from
Mar 20, 2024

Conversation

rebkwok
Copy link
Contributor

@rebkwok rebkwok commented Mar 19, 2024

First part of #181

airlock/views/workspace.py Outdated Show resolved Hide resolved
airlock/views/workspace.py Show resolved Hide resolved

def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "airlock.settings")
tracing.setup_default_tracing()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, this is nice, being able to trace management commands is really nice.

tracing.py Outdated Show resolved Hide resolved
tracing.py Outdated Show resolved Hide resolved
Initialise opentelemetry in the gunicorn post_fork hook for prod.
Includes an `OTEL_CONSOLE` env variable that can be used to
send traces to the console in local dev environments.
Include base metadata on a root Resource, including backend.
@rebkwok rebkwok force-pushed the telemetry-setup branch 2 times, most recently from cdea2ee to 1183546 Compare March 20, 2024 12:00
dotenv-sample Outdated Show resolved Hide resolved
services/tracing.py Outdated Show resolved Hide resolved
Also moves tracing.py into a services/ directory, and adds it to
the coverage paths.
@rebkwok rebkwok merged commit 783ae75 into main Mar 20, 2024
8 checks passed
@rebkwok rebkwok deleted the telemetry-setup branch March 20, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants