agardnerIT / tracepusher

Generate and push OpenTelemetry Trace data to an OTEL collector in JSON format
Apache License 2.0
53 stars 11 forks source link

k8s Operator: Generate traces for Jobs and CronJobs #71

Closed agardnerIT closed 1 year ago

agardnerIT commented 1 year ago

Create a Kubernetes Operator using the Kubernetes Python client to generate spans for Jobs and CronJobs.

agardnerIT commented 1 year ago

Work in progress (we need help!) here: https://github.com/agardnerIT/tracepusher/blob/feat/k8s-operator/operator/app.py

Screenshot 2023-08-27 at 9 28 05 pm
agardnerIT commented 1 year ago

https://github.com/agardnerIT/tracepusher/blob/feat/k8s-operator/operator/allinone.yml

agardnerIT commented 1 year ago

Multi container jobs are now represented with subspans.

Screenshot 2023-09-05 at 8 49 51 am

A job that fails will show which container and why it failed:

Screenshot 2023-09-05 at 8 52 39 am

The parent (Job) span will have the overview:

Screenshot 2023-09-05 at 8 53 25 am

The child (container) span will have the container logs, exit code and details:

Screenshot 2023-09-05 at 8 54 09 am
agardnerIT commented 1 year ago

Completed and available as image: tracepusher:operator-v0.1.0

See documentation: https://agardnerit.github.io/tracepusher/usage/k8sjobs/