Telemetry - TracePipeline

The tracepipeline.telemetry.kyma-project.io CustomResourceDefinition (CRD) is a detailed description of the kind of data and the format used to filter and ship trace data in Kyma. To get the up-to-date CRD and show the output in the YAML format, run this command:

Click to copy
kubectl get crd tracepipeline.telemetry.kyma-project.io -o yaml

Sample custom resource

The following TracePipeline object defines a pipeline integrating into the local Jaeger instance.

Click to copy
apiVersion: telemetry.kyma-project.io/v1alpha1
kind: TracePipeline
metadata:
name: jaeger
spec:
output:
otlp:
endpoint:
value: http://tracing-jaeger-collector.kyma-system.svc.cluster.local:4317
status:
conditions:
- lastTransitionTime: "2022-12-13T14:33:27Z"
reason: OpenTelemetryDeploymentNotReady
type: Pending
- lastTransitionTime: "2022-12-13T14:33:28Z"
reason: OpenTelemetryDeploymentReady
type: Running

For further TracePipeline examples, see the samples directory.

Custom resource parameters

spec attribute

For details, see the TracePipeline specification file.

ParameterTypeDescription
outputobjectDefines a destination for shipping trace data. Only one can be defined per pipeline.
output.otlpobjectConfigures the underlying Otel Collector with an OTLP exporter. If you switch protocolto http, an OTLP HTTP exporter is used.
output.otlp.protocolstringUse either GRPC or HTTP protocol. Default is GRPC.
output.otlp.endpointobjectConfigures the endpoint of the destination backend in format <scheme>://<host>:<port> where host and port are mandatory.
output.otlp.endpoint.valuestringEndpoint taken from a static value
output.otlp.endpoint.valueFrom.secretKeyRefobjectReference to a key in a Secret. You must provide name and namespace of the Secret, as well as the name of the key.
output.otlp.authenticationobjectConfigures the authentication mechanism for the destination.
output.otlp.authentication.basicobjectActivates Basic authentication for the destination providing relevant Secrets.
output.otlp.authentication.basic.passwordobjectConfigures the password to be used for Basic authentication.
output.otlp.authentication.basic.password.valuestringPassword as plain text provided as static value. Do not use in production, as it does not satisfy standards for secret handling. Use the valueFrom.secretKeyRef instead.
output.otlp.authentication.basic.password.valueFrom.secretKeyRefobjectReference to a key in a Secret. You must provide name and namespace of the Secret, as well as the name of the key.
output.otlp.authentication.basic.userobjectConfigures the username to be used for Basic authentication.
output.otlp.authentication.basic.user.valuestringUsername as plain text provided as static value.
output.otlp.authentication.basic.user.valueFrom.secretKeyRefobjectReference to a key in a Secret. You must provide name and namespace of the Secret, as well as the name of the key.

status attribute

For details, see the TracePipeline specification file.

ParameterTypeDescription
conditions[]objectAn array of conditions describing the status of the pipeline.
conditions[].lastTransitionTime[]objectAn array of conditions describing the status of the pipeline.
conditions[].reason[]objectAn array of conditions describing the status of the pipeline.
conditions[].typeenumThe possible transition types are:- Running: The instance is ready and usable.- Pending: The pipeline is being activated.