Skip to content

Commit

Permalink
add tracing config
Browse files Browse the repository at this point in the history
  • Loading branch information
zmraul committed Oct 30, 2024
1 parent 4cefda1 commit 013e7cd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import time

from charms.data_platform_libs.v0.data_models import TypedCharmBase
from charms.grafana_agent.v0.cos_agent import COSAgentProvider
from charms.grafana_agent.v0.cos_agent import COSAgentProvider, charm_tracing_config
from charms.operator_libs_linux.v0 import sysctl
from charms.rolling_ops.v0.rollingops import RollingOpsManager, RunWithLock
from ops import (
Expand Down Expand Up @@ -73,14 +73,13 @@ def __init__(self, *args):
logs_rules_dir=LOGS_RULES_DIR,
log_slots=[f"{self.workload.SNAP_NAME}:{slot}" for slot in self.workload.LOG_SLOTS],
tracing_protocols=[
"otlp_grpc",
# "otlp_grpc",
"otlp_http",
"zipkin",
"jaeger_thrift_http",
"jaeger_grpc",
]
)

# self._telemetry_endpoint = charm_tracing_config(endpoint_requirer=self._grafana_agent, cert_path=None)

self.framework.observe(getattr(self.on, "install"), self._on_install)
self.framework.observe(getattr(self.on, "remove"), self._on_remove)
self.framework.observe(getattr(self.on, "config_changed"), self._on_roles_changed)
Expand Down

0 comments on commit 013e7cd

Please sign in to comment.