config: Add resource attributes #17

Merged
fyrchik merged 1 commit from feat/tracing_attributes into master 2024-11-12 08:45:10 +00:00

This allows to specify key-value attributes for all spans.
I think it is ok to limit value types with string, as other types could be converted to string by service.

Example:
image

This allows to specify key-value attributes for all spans. I think it is ok to limit value types with `string`, as other types could be converted to `string` by service. Example: ![image](/attachments/f092a8f7-8b4a-4e75-9cef-1bebaba3016f)
197 KiB
dstepanov-yadro added 1 commit 2024-11-12 08:20:35 +00:00
[#9999] config: Add resource attributes
All checks were successful
DCO action / DCO (pull_request) Successful in 1m21s
Tests and linters / Tests (pull_request) Successful in 1m37s
Tests and linters / Staticcheck (pull_request) Successful in 1m41s
Tests and linters / Tests with -race (pull_request) Successful in 2m23s
Tests and linters / Lint (pull_request) Successful in 3m1s
651f797671
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
dstepanov-yadro force-pushed feat/tracing_attributes from 651f797671 to a2e94b5bb6 2024-11-12 08:21:31 +00:00 Compare
dstepanov-yadro force-pushed feat/tracing_attributes from a2e94b5bb6 to f17779933e 2024-11-12 08:23:30 +00:00 Compare
Author
Member

Oh, sorry, I have pushed my branch to this repo but not to fork. I delete branch on this repo after merge.

Oh, sorry, I have pushed my branch to this repo but not to fork. I delete branch on this repo after merge.
dstepanov-yadro requested review from storage-core-committers 2024-11-12 08:28:03 +00:00
dstepanov-yadro requested review from storage-core-developers 2024-11-12 08:28:03 +00:00
dstepanov-yadro requested review from alexvanin 2024-11-12 08:28:11 +00:00
acid-ant approved these changes 2024-11-12 08:41:14 +00:00
dstepanov-yadro reviewed 2024-11-12 08:43:13 +00:00
@ -165,1 +165,4 @@
for k, v := range cfg.Attributes {
attrs = append(attrs, attribute.String(k, v))
}
return resource.NewWithAttributes(
Author
Member

resource.NewWithAttributes performs attributes validation

`resource.NewWithAttributes` performs attributes validation
fyrchik approved these changes 2024-11-12 08:44:50 +00:00
fyrchik merged commit f17779933e into master 2024-11-12 08:45:10 +00:00
Sign in to join this conversation.
No description provided.