{"id":22885012,"url":"https://github.com/mark8s/opentelemetry-example","last_synced_at":"2025-03-31T17:55:27.826Z","repository":{"id":112108040,"uuid":"605977340","full_name":"mark8s/opentelemetry-example","owner":"mark8s","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-27T07:25:54.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T22:42:24.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mark8s.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-24T10:14:04.000Z","updated_at":"2023-02-24T10:14:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff18b14a-7bde-4a4f-bba6-4edbbc5a0368","html_url":"https://github.com/mark8s/opentelemetry-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mark8s%2Fopentelemetry-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mark8s%2Fopentelemetry-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mark8s%2Fopentelemetry-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mark8s%2Fopentelemetry-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mark8s","download_url":"https://codeload.github.com/mark8s/opentelemetry-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246514192,"owners_count":20790016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-13T19:30:33.542Z","updated_at":"2025-03-31T17:55:27.798Z","avatar_url":"https://github.com/mark8s.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenTelemetry-Example \n\n# Concepts\n在 OpenTelemetry 中，Baggage 是跨度之间传递的上下文信息。它是一个键值存储，与跟踪中的跨度上下文一起驻留，使值可用于在该跟踪中创建的任何跨度。\n\n例如，假设您想CustomerId在跟踪中的每个跨度上都有一个属性，这涉及多个服务；但是，CustomerId仅在一项特定服务中可用。为实现您的目标，您可以使用 OpenTelemetry Baggage 在整个系统中传播此值。\n\nOTel Baggage 应用于您可以向第三方公开的非敏感数据。这是因为它与当前上下文一起存储在 HTTP 标头中。\n\nBaggage - 为整条追踪连保存跨服务（跨进程）的K/V格式的用户自定义数据。Baggage 与 Attributes 类似，也是 K/V 键值对。与 Attributes 不同的是：\n- 其key跟value都只能是字符串格式\n- Baggage不仅当前span可见，其会随着SpanContext传递给后续所有的子span。要小心谨慎的使用Baggage - 因为在所有的span中传递这些K,V会带来不小的网络和CPU开销。\n\n## References\n[opentelemetry-go](https://opentelemetry.io/docs/instrumentation/go/getting-started/)\n\n[链路跟踪-背景知识](https://goframe.org/pages/viewpage.action?pageId=38575612)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmark8s%2Fopentelemetry-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmark8s%2Fopentelemetry-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmark8s%2Fopentelemetry-example/lists"}