Skip to content

Commit

Permalink
update with new dnstapir changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Nov 7, 2024
1 parent a4ef6ea commit 0c9e73f
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 25 deletions.
4 changes: 2 additions & 2 deletions aggrec/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from dnstapir.key_cache import key_cache_from_settings
from dnstapir.key_resolver import key_resolver_from_client_database
from dnstapir.logging import configure_json_logging
from dnstapir.telemetry import configure_opentelemetry
from dnstapir.opentelemetry import configure_opentelemetry

from . import OPENAPI_METADATA, __verbose_version__
from .settings import Settings
Expand All @@ -31,7 +31,7 @@ def __init__(self, settings: Settings):
self.include_router(aggrec.aggregates.router)
self.include_router(aggrec.extras.router)
configure_opentelemetry(
self,
fastapi_app=self,
service_name="aggrec",
spans_endpoint=str(settings.otlp.spans_endpoint),
metrics_endpoint=str(settings.otlp.metrics_endpoint),
Expand Down
99 changes: 77 additions & 22 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ aggrec_client = "aggrec.client:main"

[tool.poetry.dependencies]
python = "^3.12"
dnstapir = {git = "https://github.com/dnstapir/python-dnstapir.git", rev = "main"}
dnstapir = {git = "https://github.com/dnstapir/python-dnstapir.git", rev = "main", extras = ["opentelemetry"]}
mongoengine = "^0.29.0"
http-message-signatures = "^0.5.0"
requests = "^2.30.0"
Expand Down

0 comments on commit 0c9e73f

Please sign in to comment.