Skip to content

Commit

Permalink
Use self.workload_tracing_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkay committed Nov 13, 2024
1 parent 2e622cf commit ab4135e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def _prometheus_layer(self) -> Layer:
"""
logger.debug("Building pebble layer")
environment = {}
if self.workload_tracing.is_ready():
if self.workload_tracing_endpoint:
# tracing is ready to serve traffic, so we can add the topology.
environment["OTEL_RESOURCE_ATTRIBUTES"] = (
f"juju_application={self._topology.application},juju_model={self._topology.model},juju_model_uuid={self._topology.model_uuid},juju_unit={self._topology.unit},juju_charm={self._topology.charm_name}"
Expand Down

0 comments on commit ab4135e

Please sign in to comment.