@obsunified/collector 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +60 -0
  3. package/dist/auth.d.ts +2 -0
  4. package/dist/auth.js +9 -0
  5. package/dist/auth.js.map +1 -0
  6. package/dist/chunk-UGWDOGGH.js +319 -0
  7. package/dist/chunk-UGWDOGGH.js.map +1 -0
  8. package/dist/chunk-XKQTVIRE.js +671 -0
  9. package/dist/chunk-XKQTVIRE.js.map +1 -0
  10. package/dist/index.d.ts +1197 -0
  11. package/dist/index.js +17707 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/ingest-auth-HFVO1zIp.d.ts +165 -0
  14. package/dist/openai-FJYOQ7WO.js +384 -0
  15. package/dist/openai-FJYOQ7WO.js.map +1 -0
  16. package/package.json +73 -0
  17. package/src/ai-parity/ai-parity.acceptance.test.ts +449 -0
  18. package/src/analyses/derive.ts +642 -0
  19. package/src/analyses/index.ts +50 -0
  20. package/src/analyses/investigations.ts +277 -0
  21. package/src/analyses/tier0.ts +568 -0
  22. package/src/auth/dashboard-auth.ts +269 -0
  23. package/src/auth/ingest-auth.ts +147 -0
  24. package/src/durable-objects/tail-hub.test.ts +32 -0
  25. package/src/durable-objects/tail-hub.ts +158 -0
  26. package/src/framework/collector.ts +467 -0
  27. package/src/framework/env.ts +90 -0
  28. package/src/framework/logger.ts +81 -0
  29. package/src/index.ts +211 -0
  30. package/src/lib/action-aggregates.ts +1031 -0
  31. package/src/lib/action-identity.ts +106 -0
  32. package/src/lib/actions-store.ts +397 -0
  33. package/src/lib/ai-pricing.ts +80 -0
  34. package/src/lib/ai-store/calls.ts +148 -0
  35. package/src/lib/ai-store/evaluations.test.ts +47 -0
  36. package/src/lib/ai-store/evaluations.ts +125 -0
  37. package/src/lib/ai-store/helpers.ts +37 -0
  38. package/src/lib/ai-store/retention.ts +17 -0
  39. package/src/lib/ai-store/sessions.ts +277 -0
  40. package/src/lib/ai-store/spans.ts +109 -0
  41. package/src/lib/ai-store/types.ts +112 -0
  42. package/src/lib/ai-store.ts +76 -0
  43. package/src/lib/alerts-store.ts +458 -0
  44. package/src/lib/analyses-runner.ts +439 -0
  45. package/src/lib/analyses-store.test.ts +243 -0
  46. package/src/lib/analyses-store.ts +454 -0
  47. package/src/lib/ask.test.ts +302 -0
  48. package/src/lib/ask.ts +390 -0
  49. package/src/lib/blob-store-s3.ts +213 -0
  50. package/src/lib/blob-store.ts +366 -0
  51. package/src/lib/eval-cases-store.test.ts +171 -0
  52. package/src/lib/eval-cases-store.ts +1033 -0
  53. package/src/lib/evidence-references.test.ts +10 -0
  54. package/src/lib/evidence-references.ts +684 -0
  55. package/src/lib/hash.ts +26 -0
  56. package/src/lib/identity-index/action-lookups.ts +805 -0
  57. package/src/lib/identity-index/constants.ts +1 -0
  58. package/src/lib/identity-index/key-lookups.ts +199 -0
  59. package/src/lib/identity-index/mappers.ts +349 -0
  60. package/src/lib/identity-index/types.ts +196 -0
  61. package/src/lib/identity-index/user-lookup.ts +137 -0
  62. package/src/lib/identity-index.test.ts +624 -0
  63. package/src/lib/identity-index.ts +85 -0
  64. package/src/lib/json.ts +39 -0
  65. package/src/lib/llm.ts +263 -0
  66. package/src/lib/logs-store.ts +188 -0
  67. package/src/lib/metrics-store.test.ts +189 -0
  68. package/src/lib/metrics-store.ts +312 -0
  69. package/src/lib/narrate-gate.test.ts +260 -0
  70. package/src/lib/narrate-gate.ts +253 -0
  71. package/src/lib/openai.test.ts +300 -0
  72. package/src/lib/openai.ts +512 -0
  73. package/src/lib/otlp.ts +212 -0
  74. package/src/lib/parse-pprof.test.ts +64 -0
  75. package/src/lib/parse-pprof.ts +184 -0
  76. package/src/lib/payload-capture.ts +22 -0
  77. package/src/lib/projects-store.ts +207 -0
  78. package/src/lib/propagation-metric.test.ts +196 -0
  79. package/src/lib/propagation-metric.ts +175 -0
  80. package/src/lib/sql-db-dialect.test.ts +22 -0
  81. package/src/lib/sql-db-postgres.ts +229 -0
  82. package/src/lib/sql-db.ts +166 -0
  83. package/src/lib/stage6.test.ts +216 -0
  84. package/src/lib/store/export.ts +65 -0
  85. package/src/lib/store/helpers.ts +367 -0
  86. package/src/lib/store/ingest.ts +68 -0
  87. package/src/lib/store/issues.ts +158 -0
  88. package/src/lib/store/overview.ts +127 -0
  89. package/src/lib/store/retention.ts +10 -0
  90. package/src/lib/store/service-map.ts +384 -0
  91. package/src/lib/store/trace-detail.bench.ts +76 -0
  92. package/src/lib/store/trace-detail.test.ts +410 -0
  93. package/src/lib/store/trace-detail.ts +427 -0
  94. package/src/lib/store/trace-queries.test.ts +29 -0
  95. package/src/lib/store/trace-queries.ts +89 -0
  96. package/src/lib/store-overview.test.ts +77 -0
  97. package/src/lib/store.ts +96 -0
  98. package/src/lib/tail-publisher.ts +64 -0
  99. package/src/lib/test-utils/mem-sql-db.test.ts +93 -0
  100. package/src/lib/test-utils/mem-sql-db.ts +86 -0
  101. package/src/lib/ua-parser.ts +61 -0
  102. package/src/lib/usage-store.ts +567 -0
  103. package/src/migrations/001_telemetry_spans.sql +28 -0
  104. package/src/migrations/002_usage_events.sql +24 -0
  105. package/src/migrations/003_usage_analytics_columns.sql +13 -0
  106. package/src/migrations/004_logs.sql +19 -0
  107. package/src/migrations/005_ai_calls.sql +25 -0
  108. package/src/migrations/006_user_profiles.sql +11 -0
  109. package/src/migrations/007_session_replay_metadata.sql +10 -0
  110. package/src/migrations/008_session_replay_storage_bytes.sql +1 -0
  111. package/src/migrations/009_projects_and_keys.sql +22 -0
  112. package/src/migrations/010_signal_project_id.sql +15 -0
  113. package/src/migrations/011_default_project_seed.sql +3 -0
  114. package/src/migrations/012_alert_rules.sql +17 -0
  115. package/src/migrations/013_alert_evaluations.sql +13 -0
  116. package/src/migrations/014_alert_state.sql +9 -0
  117. package/src/migrations/015_metrics.sql +58 -0
  118. package/src/migrations/016_metrics_exp_histogram_summary.sql +5 -0
  119. package/src/migrations/017_span_dropped_counts.sql +11 -0
  120. package/src/migrations/018_log_flags.sql +8 -0
  121. package/src/migrations/019_ai_span_payloads.sql +30 -0
  122. package/src/migrations/020_ai_span_evaluations.sql +33 -0
  123. package/src/migrations/021_ai_span_session.sql +13 -0
  124. package/src/migrations/022_span_log_session_id.sql +13 -0
  125. package/src/migrations/023_service_map_indexes.sql +32 -0
  126. package/src/migrations/024_analysis_results.sql +49 -0
  127. package/src/migrations/025_stage6_autopinning_alerts.sql +38 -0
  128. package/src/migrations/026_obs_dashboard_project_seed.sql +18 -0
  129. package/src/migrations/027_identity_propagation.sql +50 -0
  130. package/src/migrations/028_profile_blobs.sql +57 -0
  131. package/src/migrations/029_telemetry_sdk_name.sql +20 -0
  132. package/src/migrations/030_analysis_claim.sql +18 -0
  133. package/src/migrations/031_agent_action_graph.sql +154 -0
  134. package/src/migrations/032_payload_capture_flags.sql +8 -0
  135. package/src/migrations/033_eval_cases.sql +52 -0
  136. package/src/migrations/034_eval_case_results.sql +23 -0
  137. package/src/migrations/035_metric_exemplars.sql +33 -0
  138. package/src/migrations/036_trace_instrumentation_gaps.sql +19 -0
  139. package/src/migrations/037_eval_runs.sql +37 -0
  140. package/src/migrations/038_tool_call_evidence.sql +11 -0
  141. package/src/migrations/039_drop_trace_instrumentation_gaps.sql +11 -0
  142. package/src/migrations/040_evidence_retrieval_refs.sql +50 -0
  143. package/src/migrations-postgres/001_telemetry_spans.sql +33 -0
  144. package/src/migrations-postgres/002_usage_events.sql +24 -0
  145. package/src/migrations-postgres/003_usage_analytics_columns.sql +13 -0
  146. package/src/migrations-postgres/004_logs.sql +19 -0
  147. package/src/migrations-postgres/005_ai_calls.sql +25 -0
  148. package/src/migrations-postgres/006_user_profiles.sql +11 -0
  149. package/src/migrations-postgres/007_session_replay_metadata.sql +10 -0
  150. package/src/migrations-postgres/008_session_replay_storage_bytes.sql +2 -0
  151. package/src/migrations-postgres/009_projects_and_keys.sql +25 -0
  152. package/src/migrations-postgres/010_signal_project_id.sql +18 -0
  153. package/src/migrations-postgres/011_default_project_seed.sql +5 -0
  154. package/src/migrations-postgres/012_alert_rules.sql +17 -0
  155. package/src/migrations-postgres/013_alert_evaluations.sql +13 -0
  156. package/src/migrations-postgres/014_alert_state.sql +9 -0
  157. package/src/migrations-postgres/015_metrics.sql +47 -0
  158. package/src/migrations-postgres/016_metrics_exp_histogram_summary.sql +1 -0
  159. package/src/migrations-postgres/017_span_dropped_counts.sql +4 -0
  160. package/src/migrations-postgres/018_log_flags.sql +2 -0
  161. package/src/migrations-postgres/019_ai_span_payloads.sql +18 -0
  162. package/src/migrations-postgres/020_ai_span_evaluations.sql +21 -0
  163. package/src/migrations-postgres/021_ai_span_session.sql +7 -0
  164. package/src/migrations-postgres/022_span_log_session_id.sql +7 -0
  165. package/src/migrations-postgres/023_service_map_indexes.sql +9 -0
  166. package/src/migrations-postgres/024_analysis_results.sql +41 -0
  167. package/src/migrations-postgres/025_stage6_autopinning_alerts.sql +17 -0
  168. package/src/migrations-postgres/026_obs_dashboard_project_seed.sql +14 -0
  169. package/src/migrations-postgres/027_identity_propagation.sql +27 -0
  170. package/src/migrations-postgres/028_profile_blobs.sql +48 -0
  171. package/src/migrations-postgres/029_telemetry_sdk_name.sql +5 -0
  172. package/src/migrations-postgres/030_analysis_claim.sql +5 -0
  173. package/src/migrations-postgres/031_agent_action_graph.sql +190 -0
  174. package/src/migrations-postgres/032_payload_capture_flags.sql +8 -0
  175. package/src/migrations-postgres/033_eval_cases.sql +55 -0
  176. package/src/migrations-postgres/034_eval_case_results.sql +26 -0
  177. package/src/migrations-postgres/035_metric_exemplars.sql +31 -0
  178. package/src/migrations-postgres/036_trace_instrumentation_gaps.sql +19 -0
  179. package/src/migrations-postgres/037_eval_runs.sql +40 -0
  180. package/src/migrations-postgres/038_tool_call_evidence.sql +11 -0
  181. package/src/migrations-postgres/039_drop_trace_instrumentation_gaps.sql +11 -0
  182. package/src/migrations-postgres/040_evidence_retrieval_refs.sql +47 -0
  183. package/src/migrations-postgres/README.md +40 -0
  184. package/src/otlp/acceptance.test.ts +373 -0
  185. package/src/otlp/decode/body.ts +127 -0
  186. package/src/otlp/decode/logs.ts +96 -0
  187. package/src/otlp/decode/metrics.ts +402 -0
  188. package/src/otlp/decode/traces.ts +92 -0
  189. package/src/otlp/decode/values.ts +150 -0
  190. package/src/otlp/decode.test.ts +800 -0
  191. package/src/otlp/decode.ts +11 -0
  192. package/src/otlp/gen/opentelemetry/proto/collector/logs/v1/logs_service_pb.ts +132 -0
  193. package/src/otlp/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.ts +158 -0
  194. package/src/otlp/gen/opentelemetry/proto/collector/trace/v1/trace_service_pb.ts +158 -0
  195. package/src/otlp/gen/opentelemetry/proto/common/v1/common_pb.ts +289 -0
  196. package/src/otlp/gen/opentelemetry/proto/logs/v1/logs_pb.ts +397 -0
  197. package/src/otlp/gen/opentelemetry/proto/metrics/v1/metrics_pb.ts +1329 -0
  198. package/src/otlp/gen/opentelemetry/proto/resource/v1/resource_pb.ts +86 -0
  199. package/src/otlp/gen/opentelemetry/proto/trace/v1/trace_pb.ts +710 -0
  200. package/src/otlp/response.test.ts +158 -0
  201. package/src/otlp/response.ts +129 -0
  202. package/src/plugins/_context.ts +15 -0
  203. package/src/plugins/action-graph-processor/enrichers.ts +45 -0
  204. package/src/plugins/action-graph-processor/redaction.ts +84 -0
  205. package/src/plugins/action-graph-processor.test.ts +1023 -0
  206. package/src/plugins/action-graph-processor.ts +1172 -0
  207. package/src/plugins/action-routes.test.ts +716 -0
  208. package/src/plugins/action-routes.ts +343 -0
  209. package/src/plugins/ai-receiver.ts +254 -0
  210. package/src/plugins/ai-span-payloads-processor.test.ts +90 -0
  211. package/src/plugins/ai-span-payloads-processor.ts +180 -0
  212. package/src/plugins/alerts-evaluator.test.ts +91 -0
  213. package/src/plugins/alerts-evaluator.ts +328 -0
  214. package/src/plugins/alerts-routes.ts +101 -0
  215. package/src/plugins/analyses-routes.ts +138 -0
  216. package/src/plugins/ask-routes.ts +182 -0
  217. package/src/plugins/bot-filter.ts +19 -0
  218. package/src/plugins/connected-routes/manifest.ts +531 -0
  219. package/src/plugins/connected-routes.test.ts +1791 -0
  220. package/src/plugins/connected-routes.ts +1103 -0
  221. package/src/plugins/dashboard-routes.ts +41 -0
  222. package/src/plugins/default-span-enrichment.ts +92 -0
  223. package/src/plugins/eval-cases-routes.test.ts +391 -0
  224. package/src/plugins/eval-cases-routes.ts +529 -0
  225. package/src/plugins/evidence-retrieval-routes.benchmark.test.ts +245 -0
  226. package/src/plugins/evidence-retrieval-routes.test.ts +932 -0
  227. package/src/plugins/evidence-retrieval-routes.ts +2179 -0
  228. package/src/plugins/gen-ai-normalizer.test.ts +680 -0
  229. package/src/plugins/gen-ai-normalizer.ts +302 -0
  230. package/src/plugins/identity-receiver.ts +96 -0
  231. package/src/plugins/issue-enrichment.ts +132 -0
  232. package/src/plugins/issue-insights.ts +81 -0
  233. package/src/plugins/logs-receiver.ts +160 -0
  234. package/src/plugins/metrics-receiver.ts +91 -0
  235. package/src/plugins/onboarding-routes.ts +54 -0
  236. package/src/plugins/otlp-receiver.ts +124 -0
  237. package/src/plugins/platform-routes.ts +165 -0
  238. package/src/plugins/profile-routes.ts +468 -0
  239. package/src/plugins/projects-routes.ts +92 -0
  240. package/src/plugins/query-routes.ts +220 -0
  241. package/src/plugins/redaction-processor.ts +132 -0
  242. package/src/plugins/replay-query-routes.test.ts +38 -0
  243. package/src/plugins/replay-query-routes.ts +199 -0
  244. package/src/plugins/replay-receiver.ts +81 -0
  245. package/src/plugins/tail-routes.test.ts +47 -0
  246. package/src/plugins/tail-routes.ts +42 -0
  247. package/src/plugins/timeline-routes.ts +244 -0
  248. package/src/plugins/ua-enrichment.ts +27 -0
  249. package/src/plugins/usage-normalization.ts +46 -0
  250. package/src/plugins/usage-privacy.ts +55 -0
  251. package/src/plugins/usage-query-routes.ts +102 -0
  252. package/src/plugins/usage-receiver.ts +129 -0
  253. package/src/plugins/users-query-routes.ts +78 -0
  254. package/src/plugins/utm-enrichment.ts +36 -0
@@ -0,0 +1,710 @@
1
+ // Copyright 2019, OpenTelemetry Authors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=js"
16
+ // @generated from file opentelemetry/proto/trace/v1/trace.proto (package opentelemetry.proto.trace.v1, syntax proto3)
17
+ /* eslint-disable */
18
+
19
+ import type { Message } from "@bufbuild/protobuf";
20
+ import type {
21
+ GenEnum,
22
+ GenFile,
23
+ GenMessage,
24
+ } from "@bufbuild/protobuf/codegenv2";
25
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
26
+ import type {
27
+ InstrumentationScope,
28
+ KeyValue,
29
+ } from "../../common/v1/common_pb.js";
30
+ import { file_opentelemetry_proto_common_v1_common } from "../../common/v1/common_pb.js";
31
+ import type { Resource } from "../../resource/v1/resource_pb.js";
32
+ import { file_opentelemetry_proto_resource_v1_resource } from "../../resource/v1/resource_pb.js";
33
+
34
+ /**
35
+ * Describes the file opentelemetry/proto/trace/v1/trace.proto.
36
+ */
37
+ export const file_opentelemetry_proto_trace_v1_trace: GenFile =
38
+ /*@__PURE__*/
39
+ fileDesc(
40
+ "CihvcGVudGVsZW1ldHJ5L3Byb3RvL3RyYWNlL3YxL3RyYWNlLnByb3RvEhxvcGVudGVsZW1ldHJ5LnByb3RvLnRyYWNlLnYxIlEKClRyYWNlc0RhdGESQwoOcmVzb3VyY2Vfc3BhbnMYASADKAsyKy5vcGVudGVsZW1ldHJ5LnByb3RvLnRyYWNlLnYxLlJlc291cmNlU3BhbnMipwEKDVJlc291cmNlU3BhbnMSOwoIcmVzb3VyY2UYASABKAsyKS5vcGVudGVsZW1ldHJ5LnByb3RvLnJlc291cmNlLnYxLlJlc291cmNlEj0KC3Njb3BlX3NwYW5zGAIgAygLMigub3BlbnRlbGVtZXRyeS5wcm90by50cmFjZS52MS5TY29wZVNwYW5zEhIKCnNjaGVtYV91cmwYAyABKAlKBgjoBxDpByKXAQoKU2NvcGVTcGFucxJCCgVzY29wZRgBIAEoCzIzLm9wZW50ZWxlbWV0cnkucHJvdG8uY29tbW9uLnYxLkluc3RydW1lbnRhdGlvblNjb3BlEjEKBXNwYW5zGAIgAygLMiIub3BlbnRlbGVtZXRyeS5wcm90by50cmFjZS52MS5TcGFuEhIKCnNjaGVtYV91cmwYAyABKAkihAgKBFNwYW4SEAoIdHJhY2VfaWQYASABKAwSDwoHc3Bhbl9pZBgCIAEoDBITCgt0cmFjZV9zdGF0ZRgDIAEoCRIWCg5wYXJlbnRfc3Bhbl9pZBgEIAEoDBINCgVmbGFncxgQIAEoBxIMCgRuYW1lGAUgASgJEjkKBGtpbmQYBiABKA4yKy5vcGVudGVsZW1ldHJ5LnByb3RvLnRyYWNlLnYxLlNwYW4uU3BhbktpbmQSHAoUc3RhcnRfdGltZV91bml4X25hbm8YByABKAYSGgoSZW5kX3RpbWVfdW5peF9uYW5vGAggASgGEjsKCmF0dHJpYnV0ZXMYCSADKAsyJy5vcGVudGVsZW1ldHJ5LnByb3RvLmNvbW1vbi52MS5LZXlWYWx1ZRIgChhkcm9wcGVkX2F0dHJpYnV0ZXNfY291bnQYCiABKA0SOAoGZXZlbnRzGAsgAygLMigub3BlbnRlbGVtZXRyeS5wcm90by50cmFjZS52MS5TcGFuLkV2ZW50EhwKFGRyb3BwZWRfZXZlbnRzX2NvdW50GAwgASgNEjYKBWxpbmtzGA0gAygLMicub3BlbnRlbGVtZXRyeS5wcm90by50cmFjZS52MS5TcGFuLkxpbmsSGwoTZHJvcHBlZF9saW5rc19jb3VudBgOIAEoDRI0CgZzdGF0dXMYDyABKAsyJC5vcGVudGVsZW1ldHJ5LnByb3RvLnRyYWNlLnYxLlN0YXR1cxqMAQoFRXZlbnQSFgoOdGltZV91bml4X25hbm8YASABKAYSDAoEbmFtZRgCIAEoCRI7CgphdHRyaWJ1dGVzGAMgAygLMicub3BlbnRlbGVtZXRyeS5wcm90by5jb21tb24udjEuS2V5VmFsdWUSIAoYZHJvcHBlZF9hdHRyaWJ1dGVzX2NvdW50GAQgASgNGqwBCgRMaW5rEhAKCHRyYWNlX2lkGAEgASgMEg8KB3NwYW5faWQYAiABKAwSEwoLdHJhY2Vfc3RhdGUYAyABKAkSOwoKYXR0cmlidXRlcxgEIAMoCzInLm9wZW50ZWxlbWV0cnkucHJvdG8uY29tbW9uLnYxLktleVZhbHVlEiAKGGRyb3BwZWRfYXR0cmlidXRlc19jb3VudBgFIAEoDRINCgVmbGFncxgGIAEoByKZAQoIU3BhbktpbmQSGQoVU1BBTl9LSU5EX1VOU1BFQ0lGSUVEEAASFgoSU1BBTl9LSU5EX0lOVEVSTkFMEAESFAoQU1BBTl9LSU5EX1NFUlZFUhACEhQKEFNQQU5fS0lORF9DTElFTlQQAxIWChJTUEFOX0tJTkRfUFJPRFVDRVIQBBIWChJTUEFOX0tJTkRfQ09OU1VNRVIQBSKuAQoGU3RhdHVzEg8KB21lc3NhZ2UYAiABKAkSPQoEY29kZRgDIAEoDjIvLm9wZW50ZWxlbWV0cnkucHJvdG8udHJhY2UudjEuU3RhdHVzLlN0YXR1c0NvZGUiTgoKU3RhdHVzQ29kZRIVChFTVEFUVVNfQ09ERV9VTlNFVBAAEhIKDlNUQVRVU19DT0RFX09LEAESFQoRU1RBVFVTX0NPREVfRVJST1IQAkoECAEQAiqcAQoJU3BhbkZsYWdzEhkKFVNQQU5fRkxBR1NfRE9fTk9UX1VTRRAAEiAKG1NQQU5fRkxBR1NfVFJBQ0VfRkxBR1NfTUFTSxD/ARIqCiVTUEFOX0ZMQUdTX0NPTlRFWFRfSEFTX0lTX1JFTU9URV9NQVNLEIACEiYKIVNQQU5fRkxBR1NfQ09OVEVYVF9JU19SRU1PVEVfTUFTSxCABEJ3Ch9pby5vcGVudGVsZW1ldHJ5LnByb3RvLnRyYWNlLnYxQgpUcmFjZVByb3RvUAFaJ2dvLm9wZW50ZWxlbWV0cnkuaW8vcHJvdG8vb3RscC90cmFjZS92MaoCHE9wZW5UZWxlbWV0cnkuUHJvdG8uVHJhY2UuVjFiBnByb3RvMw",
41
+ [
42
+ file_opentelemetry_proto_common_v1_common,
43
+ file_opentelemetry_proto_resource_v1_resource,
44
+ ],
45
+ );
46
+
47
+ /**
48
+ * TracesData represents the traces data that can be stored in a persistent storage,
49
+ * OR can be embedded by other protocols that transfer OTLP traces data but do
50
+ * not implement the OTLP protocol.
51
+ *
52
+ * The main difference between this message and collector protocol is that
53
+ * in this message there will not be any "control" or "metadata" specific to
54
+ * OTLP protocol.
55
+ *
56
+ * When new fields are added into this message, the OTLP request MUST be updated
57
+ * as well.
58
+ *
59
+ * @generated from message opentelemetry.proto.trace.v1.TracesData
60
+ */
61
+ export type TracesData = Message<"opentelemetry.proto.trace.v1.TracesData"> & {
62
+ /**
63
+ * An array of ResourceSpans.
64
+ * For data coming from a single resource this array will typically contain
65
+ * one element. Intermediary nodes that receive data from multiple origins
66
+ * typically batch the data before forwarding further and in that case this
67
+ * array will contain multiple elements.
68
+ *
69
+ * @generated from field: repeated opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1;
70
+ */
71
+ resourceSpans: ResourceSpans[];
72
+ };
73
+
74
+ /**
75
+ * Describes the message opentelemetry.proto.trace.v1.TracesData.
76
+ * Use `create(TracesDataSchema)` to create a new message.
77
+ */
78
+ export const TracesDataSchema: GenMessage<TracesData> =
79
+ /*@__PURE__*/
80
+ messageDesc(file_opentelemetry_proto_trace_v1_trace, 0);
81
+
82
+ /**
83
+ * A collection of ScopeSpans from a Resource.
84
+ *
85
+ * @generated from message opentelemetry.proto.trace.v1.ResourceSpans
86
+ */
87
+ export type ResourceSpans =
88
+ Message<"opentelemetry.proto.trace.v1.ResourceSpans"> & {
89
+ /**
90
+ * The resource for the spans in this message.
91
+ * If this field is not set then no resource info is known.
92
+ *
93
+ * @generated from field: opentelemetry.proto.resource.v1.Resource resource = 1;
94
+ */
95
+ resource?: Resource;
96
+
97
+ /**
98
+ * A list of ScopeSpans that originate from a resource.
99
+ *
100
+ * @generated from field: repeated opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
101
+ */
102
+ scopeSpans: ScopeSpans[];
103
+
104
+ /**
105
+ * The Schema URL, if known. This is the identifier of the Schema that the resource data
106
+ * is recorded in. Notably, the last part of the URL path is the version number of the
107
+ * schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
108
+ * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
109
+ * This schema_url applies to the data in the "resource" field. It does not apply
110
+ * to the data in the "scope_spans" field which have their own schema_url field.
111
+ *
112
+ * @generated from field: string schema_url = 3;
113
+ */
114
+ schemaUrl: string;
115
+ };
116
+
117
+ /**
118
+ * Describes the message opentelemetry.proto.trace.v1.ResourceSpans.
119
+ * Use `create(ResourceSpansSchema)` to create a new message.
120
+ */
121
+ export const ResourceSpansSchema: GenMessage<ResourceSpans> =
122
+ /*@__PURE__*/
123
+ messageDesc(file_opentelemetry_proto_trace_v1_trace, 1);
124
+
125
+ /**
126
+ * A collection of Spans produced by an InstrumentationScope.
127
+ *
128
+ * @generated from message opentelemetry.proto.trace.v1.ScopeSpans
129
+ */
130
+ export type ScopeSpans = Message<"opentelemetry.proto.trace.v1.ScopeSpans"> & {
131
+ /**
132
+ * The instrumentation scope information for the spans in this message.
133
+ * Semantically when InstrumentationScope isn't set, it is equivalent with
134
+ * an empty instrumentation scope name (unknown).
135
+ *
136
+ * @generated from field: opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
137
+ */
138
+ scope?: InstrumentationScope;
139
+
140
+ /**
141
+ * A list of Spans that originate from an instrumentation scope.
142
+ *
143
+ * @generated from field: repeated opentelemetry.proto.trace.v1.Span spans = 2;
144
+ */
145
+ spans: Span[];
146
+
147
+ /**
148
+ * The Schema URL, if known. This is the identifier of the Schema that the span data
149
+ * is recorded in. Notably, the last part of the URL path is the version number of the
150
+ * schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
151
+ * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
152
+ * This schema_url applies to all spans and span events in the "spans" field.
153
+ *
154
+ * @generated from field: string schema_url = 3;
155
+ */
156
+ schemaUrl: string;
157
+ };
158
+
159
+ /**
160
+ * Describes the message opentelemetry.proto.trace.v1.ScopeSpans.
161
+ * Use `create(ScopeSpansSchema)` to create a new message.
162
+ */
163
+ export const ScopeSpansSchema: GenMessage<ScopeSpans> =
164
+ /*@__PURE__*/
165
+ messageDesc(file_opentelemetry_proto_trace_v1_trace, 2);
166
+
167
+ /**
168
+ * A Span represents a single operation performed by a single component of the system.
169
+ *
170
+ * The next available field id is 17.
171
+ *
172
+ * @generated from message opentelemetry.proto.trace.v1.Span
173
+ */
174
+ export type Span = Message<"opentelemetry.proto.trace.v1.Span"> & {
175
+ /**
176
+ * A unique identifier for a trace. All spans from the same trace share
177
+ * the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes OR
178
+ * of length other than 16 bytes is considered invalid (empty string in OTLP/JSON
179
+ * is zero-length and thus is also invalid).
180
+ *
181
+ * This field is required.
182
+ *
183
+ * @generated from field: bytes trace_id = 1;
184
+ */
185
+ traceId: Uint8Array;
186
+
187
+ /**
188
+ * A unique identifier for a span within a trace, assigned when the span
189
+ * is created. The ID is an 8-byte array. An ID with all zeroes OR of length
190
+ * other than 8 bytes is considered invalid (empty string in OTLP/JSON
191
+ * is zero-length and thus is also invalid).
192
+ *
193
+ * This field is required.
194
+ *
195
+ * @generated from field: bytes span_id = 2;
196
+ */
197
+ spanId: Uint8Array;
198
+
199
+ /**
200
+ * trace_state conveys information about request position in multiple distributed tracing graphs.
201
+ * It is a trace_state in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header
202
+ * See also https://github.com/w3c/distributed-tracing for more details about this field.
203
+ *
204
+ * @generated from field: string trace_state = 3;
205
+ */
206
+ traceState: string;
207
+
208
+ /**
209
+ * The `span_id` of this span's parent span. If this is a root span, then this
210
+ * field must be empty. The ID is an 8-byte array.
211
+ *
212
+ * @generated from field: bytes parent_span_id = 4;
213
+ */
214
+ parentSpanId: Uint8Array;
215
+
216
+ /**
217
+ * Flags, a bit field.
218
+ *
219
+ * Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace
220
+ * Context specification. To read the 8-bit W3C trace flag, use
221
+ * `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`.
222
+ *
223
+ * See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
224
+ *
225
+ * Bits 8 and 9 represent the 3 states of whether a span's parent
226
+ * is remote. The states are (unknown, is not remote, is remote).
227
+ * To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`.
228
+ * To read whether the span is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`.
229
+ *
230
+ * When creating span messages, if the message is logically forwarded from another source
231
+ * with an equivalent flags fields (i.e., usually another OTLP span message), the field SHOULD
232
+ * be copied as-is. If creating from a source that does not have an equivalent flags field
233
+ * (such as a runtime representation of an OpenTelemetry span), the high 22 bits MUST
234
+ * be set to zero.
235
+ * Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero.
236
+ *
237
+ * [Optional].
238
+ *
239
+ * @generated from field: fixed32 flags = 16;
240
+ */
241
+ flags: number;
242
+
243
+ /**
244
+ * A description of the span's operation.
245
+ *
246
+ * For example, the name can be a qualified method name or a file name
247
+ * and a line number where the operation is called. A best practice is to use
248
+ * the same display name at the same call point in an application.
249
+ * This makes it easier to correlate spans in different traces.
250
+ *
251
+ * This field is semantically required to be set to non-empty string.
252
+ * Empty value is equivalent to an unknown span name.
253
+ *
254
+ * This field is required.
255
+ *
256
+ * @generated from field: string name = 5;
257
+ */
258
+ name: string;
259
+
260
+ /**
261
+ * Distinguishes between spans generated in a particular context. For example,
262
+ * two spans with the same name may be distinguished using `CLIENT` (caller)
263
+ * and `SERVER` (callee) to identify queueing latency associated with the span.
264
+ *
265
+ * @generated from field: opentelemetry.proto.trace.v1.Span.SpanKind kind = 6;
266
+ */
267
+ kind: Span_SpanKind;
268
+
269
+ /**
270
+ * start_time_unix_nano is the start time of the span. On the client side, this is the time
271
+ * kept by the local machine where the span execution starts. On the server side, this
272
+ * is the time when the server's application handler starts running.
273
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
274
+ *
275
+ * This field is semantically required and it is expected that end_time >= start_time.
276
+ *
277
+ * @generated from field: fixed64 start_time_unix_nano = 7;
278
+ */
279
+ startTimeUnixNano: bigint;
280
+
281
+ /**
282
+ * end_time_unix_nano is the end time of the span. On the client side, this is the time
283
+ * kept by the local machine where the span execution ends. On the server side, this
284
+ * is the time when the server application handler stops running.
285
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
286
+ *
287
+ * This field is semantically required and it is expected that end_time >= start_time.
288
+ *
289
+ * @generated from field: fixed64 end_time_unix_nano = 8;
290
+ */
291
+ endTimeUnixNano: bigint;
292
+
293
+ /**
294
+ * attributes is a collection of key/value pairs. Note, global attributes
295
+ * like server name can be set using the resource API. Examples of attributes:
296
+ *
297
+ * "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
298
+ * "/http/server_latency": 300
299
+ * "example.com/myattribute": true
300
+ * "example.com/score": 10.239
301
+ *
302
+ * Attribute keys MUST be unique (it is not allowed to have more than one
303
+ * attribute with the same key).
304
+ *
305
+ * The attribute values SHOULD NOT contain empty values.
306
+ * The attribute values SHOULD NOT contain bytes values.
307
+ * The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
308
+ * double values.
309
+ * The attribute values SHOULD NOT contain kvlist values.
310
+ * The behavior of software that receives attributes containing such values can be unpredictable.
311
+ * These restrictions can change in a minor release.
312
+ * The restrictions take origin from the OpenTelemetry specification:
313
+ * https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
314
+ *
315
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 9;
316
+ */
317
+ attributes: KeyValue[];
318
+
319
+ /**
320
+ * dropped_attributes_count is the number of attributes that were discarded. Attributes
321
+ * can be discarded because their keys are too long or because there are too many
322
+ * attributes. If this value is 0, then no attributes were dropped.
323
+ *
324
+ * @generated from field: uint32 dropped_attributes_count = 10;
325
+ */
326
+ droppedAttributesCount: number;
327
+
328
+ /**
329
+ * events is a collection of Event items.
330
+ *
331
+ * @generated from field: repeated opentelemetry.proto.trace.v1.Span.Event events = 11;
332
+ */
333
+ events: Span_Event[];
334
+
335
+ /**
336
+ * dropped_events_count is the number of dropped events. If the value is 0, then no
337
+ * events were dropped.
338
+ *
339
+ * @generated from field: uint32 dropped_events_count = 12;
340
+ */
341
+ droppedEventsCount: number;
342
+
343
+ /**
344
+ * links is a collection of Links, which are references from this span to a span
345
+ * in the same or different trace.
346
+ *
347
+ * @generated from field: repeated opentelemetry.proto.trace.v1.Span.Link links = 13;
348
+ */
349
+ links: Span_Link[];
350
+
351
+ /**
352
+ * dropped_links_count is the number of dropped links after the maximum size was
353
+ * enforced. If this value is 0, then no links were dropped.
354
+ *
355
+ * @generated from field: uint32 dropped_links_count = 14;
356
+ */
357
+ droppedLinksCount: number;
358
+
359
+ /**
360
+ * An optional final status for this span. Semantically when Status isn't set, it means
361
+ * span's status code is unset, i.e. assume STATUS_CODE_UNSET (code = 0).
362
+ *
363
+ * @generated from field: opentelemetry.proto.trace.v1.Status status = 15;
364
+ */
365
+ status?: Status;
366
+ };
367
+
368
+ /**
369
+ * Describes the message opentelemetry.proto.trace.v1.Span.
370
+ * Use `create(SpanSchema)` to create a new message.
371
+ */
372
+ export const SpanSchema: GenMessage<Span> =
373
+ /*@__PURE__*/
374
+ messageDesc(file_opentelemetry_proto_trace_v1_trace, 3);
375
+
376
+ /**
377
+ * Event is a time-stamped annotation of the span, consisting of user-supplied
378
+ * text description and key-value pairs.
379
+ *
380
+ * @generated from message opentelemetry.proto.trace.v1.Span.Event
381
+ */
382
+ export type Span_Event = Message<"opentelemetry.proto.trace.v1.Span.Event"> & {
383
+ /**
384
+ * time_unix_nano is the time the event occurred.
385
+ *
386
+ * @generated from field: fixed64 time_unix_nano = 1;
387
+ */
388
+ timeUnixNano: bigint;
389
+
390
+ /**
391
+ * name of the event.
392
+ * This field is semantically required to be set to non-empty string.
393
+ *
394
+ * @generated from field: string name = 2;
395
+ */
396
+ name: string;
397
+
398
+ /**
399
+ * attributes is a collection of attribute key/value pairs on the event.
400
+ * Attribute keys MUST be unique (it is not allowed to have more than one
401
+ * attribute with the same key).
402
+ *
403
+ * The attribute values SHOULD NOT contain empty values.
404
+ * The attribute values SHOULD NOT contain bytes values.
405
+ * The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
406
+ * double values.
407
+ * The attribute values SHOULD NOT contain kvlist values.
408
+ * The behavior of software that receives attributes containing such values can be unpredictable.
409
+ * These restrictions can change in a minor release.
410
+ * The restrictions take origin from the OpenTelemetry specification:
411
+ * https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
412
+ *
413
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 3;
414
+ */
415
+ attributes: KeyValue[];
416
+
417
+ /**
418
+ * dropped_attributes_count is the number of dropped attributes. If the value is 0,
419
+ * then no attributes were dropped.
420
+ *
421
+ * @generated from field: uint32 dropped_attributes_count = 4;
422
+ */
423
+ droppedAttributesCount: number;
424
+ };
425
+
426
+ /**
427
+ * Describes the message opentelemetry.proto.trace.v1.Span.Event.
428
+ * Use `create(Span_EventSchema)` to create a new message.
429
+ */
430
+ export const Span_EventSchema: GenMessage<Span_Event> =
431
+ /*@__PURE__*/
432
+ messageDesc(file_opentelemetry_proto_trace_v1_trace, 3, 0);
433
+
434
+ /**
435
+ * A pointer from the current span to another span in the same trace or in a
436
+ * different trace. For example, this can be used in batching operations,
437
+ * where a single batch handler processes multiple requests from different
438
+ * traces or when the handler receives a request from a different project.
439
+ *
440
+ * @generated from message opentelemetry.proto.trace.v1.Span.Link
441
+ */
442
+ export type Span_Link = Message<"opentelemetry.proto.trace.v1.Span.Link"> & {
443
+ /**
444
+ * A unique identifier of a trace that this linked span is part of. The ID is a
445
+ * 16-byte array.
446
+ *
447
+ * @generated from field: bytes trace_id = 1;
448
+ */
449
+ traceId: Uint8Array;
450
+
451
+ /**
452
+ * A unique identifier for the linked span. The ID is an 8-byte array.
453
+ *
454
+ * @generated from field: bytes span_id = 2;
455
+ */
456
+ spanId: Uint8Array;
457
+
458
+ /**
459
+ * The trace_state associated with the link.
460
+ *
461
+ * @generated from field: string trace_state = 3;
462
+ */
463
+ traceState: string;
464
+
465
+ /**
466
+ * attributes is a collection of attribute key/value pairs on the link.
467
+ * Attribute keys MUST be unique (it is not allowed to have more than one
468
+ * attribute with the same key).
469
+ *
470
+ * The attribute values SHOULD NOT contain empty values.
471
+ * The attribute values SHOULD NOT contain bytes values.
472
+ * The attribute values SHOULD NOT contain array values different than array of string values, bool values, int values,
473
+ * double values.
474
+ * The attribute values SHOULD NOT contain kvlist values.
475
+ * The behavior of software that receives attributes containing such values can be unpredictable.
476
+ * These restrictions can change in a minor release.
477
+ * The restrictions take origin from the OpenTelemetry specification:
478
+ * https://github.com/open-telemetry/opentelemetry-specification/blob/v1.47.0/specification/common/README.md#attribute.
479
+ *
480
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 4;
481
+ */
482
+ attributes: KeyValue[];
483
+
484
+ /**
485
+ * dropped_attributes_count is the number of dropped attributes. If the value is 0,
486
+ * then no attributes were dropped.
487
+ *
488
+ * @generated from field: uint32 dropped_attributes_count = 5;
489
+ */
490
+ droppedAttributesCount: number;
491
+
492
+ /**
493
+ * Flags, a bit field.
494
+ *
495
+ * Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace
496
+ * Context specification. To read the 8-bit W3C trace flag, use
497
+ * `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`.
498
+ *
499
+ * See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
500
+ *
501
+ * Bits 8 and 9 represent the 3 states of whether the link is remote.
502
+ * The states are (unknown, is not remote, is remote).
503
+ * To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`.
504
+ * To read whether the link is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`.
505
+ *
506
+ * Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero.
507
+ * When creating new spans, bits 10-31 (most-significant 22-bits) MUST be zero.
508
+ *
509
+ * [Optional].
510
+ *
511
+ * @generated from field: fixed32 flags = 6;
512
+ */
513
+ flags: number;
514
+ };
515
+
516
+ /**
517
+ * Describes the message opentelemetry.proto.trace.v1.Span.Link.
518
+ * Use `create(Span_LinkSchema)` to create a new message.
519
+ */
520
+ export const Span_LinkSchema: GenMessage<Span_Link> =
521
+ /*@__PURE__*/
522
+ messageDesc(file_opentelemetry_proto_trace_v1_trace, 3, 1);
523
+
524
+ /**
525
+ * SpanKind is the type of span. Can be used to specify additional relationships between spans
526
+ * in addition to a parent/child relationship.
527
+ *
528
+ * @generated from enum opentelemetry.proto.trace.v1.Span.SpanKind
529
+ */
530
+ export enum Span_SpanKind {
531
+ /**
532
+ * Unspecified. Do NOT use as default.
533
+ * Implementations MAY assume SpanKind to be INTERNAL when receiving UNSPECIFIED.
534
+ *
535
+ * @generated from enum value: SPAN_KIND_UNSPECIFIED = 0;
536
+ */
537
+ UNSPECIFIED = 0,
538
+
539
+ /**
540
+ * Indicates that the span represents an internal operation within an application,
541
+ * as opposed to an operation happening at the boundaries. Default value.
542
+ *
543
+ * @generated from enum value: SPAN_KIND_INTERNAL = 1;
544
+ */
545
+ INTERNAL = 1,
546
+
547
+ /**
548
+ * Indicates that the span covers server-side handling of an RPC or other
549
+ * remote network request.
550
+ *
551
+ * @generated from enum value: SPAN_KIND_SERVER = 2;
552
+ */
553
+ SERVER = 2,
554
+
555
+ /**
556
+ * Indicates that the span describes a request to some remote service.
557
+ *
558
+ * @generated from enum value: SPAN_KIND_CLIENT = 3;
559
+ */
560
+ CLIENT = 3,
561
+
562
+ /**
563
+ * Indicates that the span describes a producer sending a message to a broker.
564
+ * Unlike CLIENT and SERVER, there is often no direct critical path latency relationship
565
+ * between producer and consumer spans. A PRODUCER span ends when the message was accepted
566
+ * by the broker while the logical processing of the message might span a much longer time.
567
+ *
568
+ * @generated from enum value: SPAN_KIND_PRODUCER = 4;
569
+ */
570
+ PRODUCER = 4,
571
+
572
+ /**
573
+ * Indicates that the span describes consumer receiving a message from a broker.
574
+ * Like the PRODUCER kind, there is often no direct critical path latency relationship
575
+ * between producer and consumer spans.
576
+ *
577
+ * @generated from enum value: SPAN_KIND_CONSUMER = 5;
578
+ */
579
+ CONSUMER = 5,
580
+ }
581
+
582
+ /**
583
+ * Describes the enum opentelemetry.proto.trace.v1.Span.SpanKind.
584
+ */
585
+ export const Span_SpanKindSchema: GenEnum<Span_SpanKind> =
586
+ /*@__PURE__*/
587
+ enumDesc(file_opentelemetry_proto_trace_v1_trace, 3, 0);
588
+
589
+ /**
590
+ * The Status type defines a logical error model that is suitable for different
591
+ * programming environments, including REST APIs and RPC APIs.
592
+ *
593
+ * @generated from message opentelemetry.proto.trace.v1.Status
594
+ */
595
+ export type Status = Message<"opentelemetry.proto.trace.v1.Status"> & {
596
+ /**
597
+ * A developer-facing human readable error message.
598
+ *
599
+ * @generated from field: string message = 2;
600
+ */
601
+ message: string;
602
+
603
+ /**
604
+ * The status code.
605
+ *
606
+ * @generated from field: opentelemetry.proto.trace.v1.Status.StatusCode code = 3;
607
+ */
608
+ code: Status_StatusCode;
609
+ };
610
+
611
+ /**
612
+ * Describes the message opentelemetry.proto.trace.v1.Status.
613
+ * Use `create(StatusSchema)` to create a new message.
614
+ */
615
+ export const StatusSchema: GenMessage<Status> =
616
+ /*@__PURE__*/
617
+ messageDesc(file_opentelemetry_proto_trace_v1_trace, 4);
618
+
619
+ /**
620
+ * For the semantics of status codes see
621
+ * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status
622
+ *
623
+ * @generated from enum opentelemetry.proto.trace.v1.Status.StatusCode
624
+ */
625
+ export enum Status_StatusCode {
626
+ /**
627
+ * The default status.
628
+ *
629
+ * @generated from enum value: STATUS_CODE_UNSET = 0;
630
+ */
631
+ UNSET = 0,
632
+
633
+ /**
634
+ * The Span has been validated by an Application developer or Operator to
635
+ * have completed successfully.
636
+ *
637
+ * @generated from enum value: STATUS_CODE_OK = 1;
638
+ */
639
+ OK = 1,
640
+
641
+ /**
642
+ * The Span contains an error.
643
+ *
644
+ * @generated from enum value: STATUS_CODE_ERROR = 2;
645
+ */
646
+ ERROR = 2,
647
+ }
648
+
649
+ /**
650
+ * Describes the enum opentelemetry.proto.trace.v1.Status.StatusCode.
651
+ */
652
+ export const Status_StatusCodeSchema: GenEnum<Status_StatusCode> =
653
+ /*@__PURE__*/
654
+ enumDesc(file_opentelemetry_proto_trace_v1_trace, 4, 0);
655
+
656
+ /**
657
+ * SpanFlags represents constants used to interpret the
658
+ * Span.flags field, which is protobuf 'fixed32' type and is to
659
+ * be used as bit-fields. Each non-zero value defined in this enum is
660
+ * a bit-mask. To extract the bit-field, for example, use an
661
+ * expression like:
662
+ *
663
+ * (span.flags & SPAN_FLAGS_TRACE_FLAGS_MASK)
664
+ *
665
+ * See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
666
+ *
667
+ * Note that Span flags were introduced in version 1.1 of the
668
+ * OpenTelemetry protocol. Older Span producers do not set this
669
+ * field, consequently consumers should not rely on the absence of a
670
+ * particular flag bit to indicate the presence of a particular feature.
671
+ *
672
+ * @generated from enum opentelemetry.proto.trace.v1.SpanFlags
673
+ */
674
+ export enum SpanFlags {
675
+ /**
676
+ * The zero value for the enum. Should not be used for comparisons.
677
+ * Instead use bitwise "and" with the appropriate mask as shown above.
678
+ *
679
+ * @generated from enum value: SPAN_FLAGS_DO_NOT_USE = 0;
680
+ */
681
+ DO_NOT_USE = 0,
682
+
683
+ /**
684
+ * Bits 0-7 are used for trace flags.
685
+ *
686
+ * @generated from enum value: SPAN_FLAGS_TRACE_FLAGS_MASK = 255;
687
+ */
688
+ TRACE_FLAGS_MASK = 255,
689
+
690
+ /**
691
+ * Bits 8 and 9 are used to indicate that the parent span or link span is remote.
692
+ * Bit 8 (`HAS_IS_REMOTE`) indicates whether the value is known.
693
+ * Bit 9 (`IS_REMOTE`) indicates whether the span or link is remote.
694
+ *
695
+ * @generated from enum value: SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK = 256;
696
+ */
697
+ CONTEXT_HAS_IS_REMOTE_MASK = 256,
698
+
699
+ /**
700
+ * @generated from enum value: SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK = 512;
701
+ */
702
+ CONTEXT_IS_REMOTE_MASK = 512,
703
+ }
704
+
705
+ /**
706
+ * Describes the enum opentelemetry.proto.trace.v1.SpanFlags.
707
+ */
708
+ export const SpanFlagsSchema: GenEnum<SpanFlags> =
709
+ /*@__PURE__*/
710
+ enumDesc(file_opentelemetry_proto_trace_v1_trace, 0);