fix(gotosocial): add tracing support

This commit is contained in:
WrenIX 2024-07-19 17:28:32 +02:00
parent 5706e787d6
commit 29ceef56f0
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
4 changed files with 45 additions and 4 deletions

View file

@ -3,7 +3,7 @@ name: gotosocial
description: With GoToSocial, you can keep in touch with your friends, post, read, and share images and articles. All without being tracked or advertised to!
icon: https://docs.gotosocial.org/en/latest/assets/sloth.png
type: application
version: 0.1.9
version: 0.2.0
# renovate: image=docker.io/superseriousbusiness/gotosocial
appVersion: "0.16.0"
maintainers:

View file

@ -2,7 +2,7 @@
= gotosocial
image::https://img.shields.io/badge/Version-0.1.9-informational?style=flat-square[Version: 0.1.9]
image::https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square[Version: 0.2.0]
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
image::https://img.shields.io/badge/AppVersion-0.16.0-informational?style=flat-square[AppVersion: 0.16.0]
== Maintainers
@ -302,6 +302,26 @@ helm uninstall gotosocial-release
| `true`
| Use SSL for S3 connections. Only set this to 'false' when testing locally.
| gotosocial.tracing.enabled
| bool
| `false`
| Enable OpenTelemetry based tracing support.
| gotosocial.tracing.endpoint
| string
| `""`
| Endpoint of the trace ingester. When using the gRPC or HTTP based transports, provide the endpoint as a single address/port combination without a protocol scheme.
| gotosocial.tracing.insecureTransport
| bool
| `false`
| Disable TLS for the gRPC and HTTP transport protocols.
| gotosocial.tracing.transport
| string
| `"grpc"`
| Set the transport protocol for the tracing system. Can either be "grpc" for OTLP gRPC, or "http" for OTLP HTTP.
| gotosocial.tz
| string
| `"UTC"`
@ -480,7 +500,7 @@ helm uninstall gotosocial-release
| serviceAccount.name
| string
| `""`
| If not set and create is true, a name is generated using the fullname template
| The name of the service account to use. If not set and create is true, a name is generated using the fullname template
| tolerations
| list

View file

@ -99,4 +99,16 @@ data:
{{- end }}{{/* end-with smtp */}}
GTS_METRICS_ENABLED: {{ toYaml .metrics.enabled | b64enc }}
# https://www.w3.org/TR/trace-context/#traceparent-header
GTS_REQUEST_ID_HEADER: {{ "Traceparent" | b64enc }}
{{- with .tracing }}
{{- if .enabled }}
GTS_TRACING_ENABLED: {{ "true" | b64enc}}
GTS_TRACING_TRANSPORT: {{ .transport | b64enc }}
GTS_TRACING_ENDPOINT: {{ .endpoint | b64enc }}
GTS_TRACING_INSECURE_TRANSPORT: {{ toYaml .insecureTransport | b64enc }}
{{- end }}{{/* end-if .tracing.enabled */}}
{{- end }}{{/* end-with .tracing */}}
{{- end }}{{/* end-with .gotosocial */}}

View file

@ -174,6 +174,15 @@ gotosocial:
enabled: false
username: ""
password: ""
tracing:
# -- Enable OpenTelemetry based tracing support.
enabled: false
# -- Set the transport protocol for the tracing system. Can either be "grpc" for OTLP gRPC, or "http" for OTLP HTTP.
transport: grpc
# -- Endpoint of the trace ingester. When using the gRPC or HTTP based transports, provide the endpoint as a single address/port combination without a protocol scheme.
endpoint: ""
# -- Disable TLS for the gRPC and HTTP transport protocols.
insecureTransport: false
prometheus:
servicemonitor:
@ -188,7 +197,7 @@ serviceAccount:
# -- Annotations to add to the service account
annotations: {}
# -- The name of the service account to use.
# -- If not set and create is true, a name is generated using the fullname template
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}