This is a template repository for building custom Telemetry Exporters for the Charm ecosystem. Use this to export metrics, traces, and LLM token usage to observability platforms like Datadog, LangSmith, or Sentry.
- Click Use this template on GitHub to create your own repository.
- Rename the
src/charm_telemetry_helloworldfolder to your exporter's name (e.g.src/charm_telemetry_datadog). - Update
pyproject.tomlwith your package name, dependencies, andcharm.telemetryentry point. - Implement your hooks in
exporter.pyby inheriting fromBaseTelemetryExporter.
uv build
uv publishOnce published to PyPI, submit a Pull Request to here to list your telemetry exporter in the official Charm Store!