-
Notifications
You must be signed in to change notification settings - Fork 300
feat(tracing): add tracing support and configuration options for BBR #2518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -33,13 +33,42 @@ spec: | |||||||||||||||||||||||||
| - {{ printf "%s:%s" .type .name | quote }} | ||||||||||||||||||||||||||
| {{- end }} | ||||||||||||||||||||||||||
| {{- end }} | ||||||||||||||||||||||||||
| {{- if not .Values.bbr.multiNamespace }} | ||||||||||||||||||||||||||
| {{- if .Values.bbr.tracing.enabled}} | ||||||||||||||||||||||||||
| - --tracing=true | ||||||||||||||||||||||||||
| {{- else}} | ||||||||||||||||||||||||||
| - --tracing=false | ||||||||||||||||||||||||||
| {{- end}} | ||||||||||||||||||||||||||
|
Comment on lines
+36
to
+40
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it possible to align with other flags using key/value in separate cmd-line flags? does it work?
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will not work because it resolves to |
||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||
| {{- if not .Values.bbr.multiNamespace }} | ||||||||||||||||||||||||||
| - name: NAMESPACE | ||||||||||||||||||||||||||
| valueFrom: | ||||||||||||||||||||||||||
| fieldRef: | ||||||||||||||||||||||||||
| fieldPath: metadata.namespace | ||||||||||||||||||||||||||
| {{- end }} | ||||||||||||||||||||||||||
| {{- if .Values.bbr.tracing.enabled}} | ||||||||||||||||||||||||||
|
Comment on lines
+42
to
+48
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. out of curiosity, is leaving
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is valid and works, but it would be better to add another
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can leave it as is for now since empty |
||||||||||||||||||||||||||
| - name: OTEL_SERVICE_NAME | ||||||||||||||||||||||||||
| value: {{ .Values.bbr.tracing.otelServiceName }} | ||||||||||||||||||||||||||
| - name: OTEL_EXPORTER_OTLP_ENDPOINT | ||||||||||||||||||||||||||
| value: {{ .Values.bbr.tracing.otelExporterEndpoint }} | ||||||||||||||||||||||||||
| - name: OTEL_RESOURCE_ATTRIBUTES_NODE_NAME | ||||||||||||||||||||||||||
| valueFrom: | ||||||||||||||||||||||||||
| fieldRef: | ||||||||||||||||||||||||||
| apiVersion: v1 | ||||||||||||||||||||||||||
| fieldPath: spec.nodeName | ||||||||||||||||||||||||||
| - name: OTEL_RESOURCE_ATTRIBUTES_POD_NAME | ||||||||||||||||||||||||||
| valueFrom: | ||||||||||||||||||||||||||
| fieldRef: | ||||||||||||||||||||||||||
| apiVersion: v1 | ||||||||||||||||||||||||||
| fieldPath: metadata.name | ||||||||||||||||||||||||||
| - name: OTEL_RESOURCE_ATTRIBUTES | ||||||||||||||||||||||||||
| value: 'k8s.namespace.name=$(NAMESPACE),k8s.node.name=$(OTEL_RESOURCE_ATTRIBUTES_NODE_NAME),k8s.pod.name=$(OTEL_RESOURCE_ATTRIBUTES_POD_NAME)' | ||||||||||||||||||||||||||
| - name: OTEL_TRACES_SAMPLER | ||||||||||||||||||||||||||
| value: {{ .Values.bbr.tracing.sampling.sampler | quote }} | ||||||||||||||||||||||||||
| - name: OTEL_TRACES_SAMPLER_ARG | ||||||||||||||||||||||||||
| value: {{ .Values.bbr.tracing.sampling.samplerArg | quote }} | ||||||||||||||||||||||||||
| - name: OTEL_TRACES_EXPORTER | ||||||||||||||||||||||||||
| value: otlp | ||||||||||||||||||||||||||
| {{- end}} | ||||||||||||||||||||||||||
| ports: | ||||||||||||||||||||||||||
| - containerPort: {{ .Values.bbr.port }} | ||||||||||||||||||||||||||
| # health check | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that the intention is to keep separate traces between bbr/epp.
two points about this:
common/observability/tracingin a consumable way, to allow both epp/bbr consume it and make their own traces independently.having said that, this point is not required in current PR (can be done in follow ups), but just something to keep in mind.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.