Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Add trace context to metric and logging calls #145

Closed
jrconlin opened this issue Jun 8, 2021 · 0 comments · Fixed by #146
Closed

Add trace context to metric and logging calls #145

jrconlin opened this issue Jun 8, 2021 · 0 comments · Fixed by #146
Assignees

Comments

@jrconlin
Copy link
Member

jrconlin commented Jun 8, 2021

Per Ops, we should add the trace header data to the metric and logging calls.

This header may be X-Cloud-Trace-Context, ops to confirm.

┆Issue is synchronized with this Jira Task

jrconlin added a commit that referenced this issue Jun 8, 2021
This adds a `trace_header` setting. This will add the value (if found in
the Headers) to the tags as `header.trace`.

(e.g. if a request has `X-Cloud-Trace-Context: abc123` this will add a
tag with `header.trace: abc123` to the outboud tags for logging and
metrics.)

Closes #145
jrconlin added a commit that referenced this issue Jun 10, 2021
* feat: add an optional trace header to metrics/logging

This adds a `trace_header` setting. This will add the value (if found in
the Headers) to the tags as `header.trace`.

(e.g. if a request has `X-Cloud-Trace-Context: abc123` this will add a
tag with `header.trace: abc123` to the outboud tags for logging and
metrics.)

Closes #145
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant