@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.
- package/LICENSE +21 -0
- package/README.md +60 -0
- package/dist/auth.d.ts +2 -0
- package/dist/auth.js +9 -0
- package/dist/auth.js.map +1 -0
- package/dist/chunk-UGWDOGGH.js +319 -0
- package/dist/chunk-UGWDOGGH.js.map +1 -0
- package/dist/chunk-XKQTVIRE.js +671 -0
- package/dist/chunk-XKQTVIRE.js.map +1 -0
- package/dist/index.d.ts +1197 -0
- package/dist/index.js +17707 -0
- package/dist/index.js.map +1 -0
- package/dist/ingest-auth-HFVO1zIp.d.ts +165 -0
- package/dist/openai-FJYOQ7WO.js +384 -0
- package/dist/openai-FJYOQ7WO.js.map +1 -0
- package/package.json +73 -0
- package/src/ai-parity/ai-parity.acceptance.test.ts +449 -0
- package/src/analyses/derive.ts +642 -0
- package/src/analyses/index.ts +50 -0
- package/src/analyses/investigations.ts +277 -0
- package/src/analyses/tier0.ts +568 -0
- package/src/auth/dashboard-auth.ts +269 -0
- package/src/auth/ingest-auth.ts +147 -0
- package/src/durable-objects/tail-hub.test.ts +32 -0
- package/src/durable-objects/tail-hub.ts +158 -0
- package/src/framework/collector.ts +467 -0
- package/src/framework/env.ts +90 -0
- package/src/framework/logger.ts +81 -0
- package/src/index.ts +211 -0
- package/src/lib/action-aggregates.ts +1031 -0
- package/src/lib/action-identity.ts +106 -0
- package/src/lib/actions-store.ts +397 -0
- package/src/lib/ai-pricing.ts +80 -0
- package/src/lib/ai-store/calls.ts +148 -0
- package/src/lib/ai-store/evaluations.test.ts +47 -0
- package/src/lib/ai-store/evaluations.ts +125 -0
- package/src/lib/ai-store/helpers.ts +37 -0
- package/src/lib/ai-store/retention.ts +17 -0
- package/src/lib/ai-store/sessions.ts +277 -0
- package/src/lib/ai-store/spans.ts +109 -0
- package/src/lib/ai-store/types.ts +112 -0
- package/src/lib/ai-store.ts +76 -0
- package/src/lib/alerts-store.ts +458 -0
- package/src/lib/analyses-runner.ts +439 -0
- package/src/lib/analyses-store.test.ts +243 -0
- package/src/lib/analyses-store.ts +454 -0
- package/src/lib/ask.test.ts +302 -0
- package/src/lib/ask.ts +390 -0
- package/src/lib/blob-store-s3.ts +213 -0
- package/src/lib/blob-store.ts +366 -0
- package/src/lib/eval-cases-store.test.ts +171 -0
- package/src/lib/eval-cases-store.ts +1033 -0
- package/src/lib/evidence-references.test.ts +10 -0
- package/src/lib/evidence-references.ts +684 -0
- package/src/lib/hash.ts +26 -0
- package/src/lib/identity-index/action-lookups.ts +805 -0
- package/src/lib/identity-index/constants.ts +1 -0
- package/src/lib/identity-index/key-lookups.ts +199 -0
- package/src/lib/identity-index/mappers.ts +349 -0
- package/src/lib/identity-index/types.ts +196 -0
- package/src/lib/identity-index/user-lookup.ts +137 -0
- package/src/lib/identity-index.test.ts +624 -0
- package/src/lib/identity-index.ts +85 -0
- package/src/lib/json.ts +39 -0
- package/src/lib/llm.ts +263 -0
- package/src/lib/logs-store.ts +188 -0
- package/src/lib/metrics-store.test.ts +189 -0
- package/src/lib/metrics-store.ts +312 -0
- package/src/lib/narrate-gate.test.ts +260 -0
- package/src/lib/narrate-gate.ts +253 -0
- package/src/lib/openai.test.ts +300 -0
- package/src/lib/openai.ts +512 -0
- package/src/lib/otlp.ts +212 -0
- package/src/lib/parse-pprof.test.ts +64 -0
- package/src/lib/parse-pprof.ts +184 -0
- package/src/lib/payload-capture.ts +22 -0
- package/src/lib/projects-store.ts +207 -0
- package/src/lib/propagation-metric.test.ts +196 -0
- package/src/lib/propagation-metric.ts +175 -0
- package/src/lib/sql-db-dialect.test.ts +22 -0
- package/src/lib/sql-db-postgres.ts +229 -0
- package/src/lib/sql-db.ts +166 -0
- package/src/lib/stage6.test.ts +216 -0
- package/src/lib/store/export.ts +65 -0
- package/src/lib/store/helpers.ts +367 -0
- package/src/lib/store/ingest.ts +68 -0
- package/src/lib/store/issues.ts +158 -0
- package/src/lib/store/overview.ts +127 -0
- package/src/lib/store/retention.ts +10 -0
- package/src/lib/store/service-map.ts +384 -0
- package/src/lib/store/trace-detail.bench.ts +76 -0
- package/src/lib/store/trace-detail.test.ts +410 -0
- package/src/lib/store/trace-detail.ts +427 -0
- package/src/lib/store/trace-queries.test.ts +29 -0
- package/src/lib/store/trace-queries.ts +89 -0
- package/src/lib/store-overview.test.ts +77 -0
- package/src/lib/store.ts +96 -0
- package/src/lib/tail-publisher.ts +64 -0
- package/src/lib/test-utils/mem-sql-db.test.ts +93 -0
- package/src/lib/test-utils/mem-sql-db.ts +86 -0
- package/src/lib/ua-parser.ts +61 -0
- package/src/lib/usage-store.ts +567 -0
- package/src/migrations/001_telemetry_spans.sql +28 -0
- package/src/migrations/002_usage_events.sql +24 -0
- package/src/migrations/003_usage_analytics_columns.sql +13 -0
- package/src/migrations/004_logs.sql +19 -0
- package/src/migrations/005_ai_calls.sql +25 -0
- package/src/migrations/006_user_profiles.sql +11 -0
- package/src/migrations/007_session_replay_metadata.sql +10 -0
- package/src/migrations/008_session_replay_storage_bytes.sql +1 -0
- package/src/migrations/009_projects_and_keys.sql +22 -0
- package/src/migrations/010_signal_project_id.sql +15 -0
- package/src/migrations/011_default_project_seed.sql +3 -0
- package/src/migrations/012_alert_rules.sql +17 -0
- package/src/migrations/013_alert_evaluations.sql +13 -0
- package/src/migrations/014_alert_state.sql +9 -0
- package/src/migrations/015_metrics.sql +58 -0
- package/src/migrations/016_metrics_exp_histogram_summary.sql +5 -0
- package/src/migrations/017_span_dropped_counts.sql +11 -0
- package/src/migrations/018_log_flags.sql +8 -0
- package/src/migrations/019_ai_span_payloads.sql +30 -0
- package/src/migrations/020_ai_span_evaluations.sql +33 -0
- package/src/migrations/021_ai_span_session.sql +13 -0
- package/src/migrations/022_span_log_session_id.sql +13 -0
- package/src/migrations/023_service_map_indexes.sql +32 -0
- package/src/migrations/024_analysis_results.sql +49 -0
- package/src/migrations/025_stage6_autopinning_alerts.sql +38 -0
- package/src/migrations/026_obs_dashboard_project_seed.sql +18 -0
- package/src/migrations/027_identity_propagation.sql +50 -0
- package/src/migrations/028_profile_blobs.sql +57 -0
- package/src/migrations/029_telemetry_sdk_name.sql +20 -0
- package/src/migrations/030_analysis_claim.sql +18 -0
- package/src/migrations/031_agent_action_graph.sql +154 -0
- package/src/migrations/032_payload_capture_flags.sql +8 -0
- package/src/migrations/033_eval_cases.sql +52 -0
- package/src/migrations/034_eval_case_results.sql +23 -0
- package/src/migrations/035_metric_exemplars.sql +33 -0
- package/src/migrations/036_trace_instrumentation_gaps.sql +19 -0
- package/src/migrations/037_eval_runs.sql +37 -0
- package/src/migrations/038_tool_call_evidence.sql +11 -0
- package/src/migrations/039_drop_trace_instrumentation_gaps.sql +11 -0
- package/src/migrations/040_evidence_retrieval_refs.sql +50 -0
- package/src/migrations-postgres/001_telemetry_spans.sql +33 -0
- package/src/migrations-postgres/002_usage_events.sql +24 -0
- package/src/migrations-postgres/003_usage_analytics_columns.sql +13 -0
- package/src/migrations-postgres/004_logs.sql +19 -0
- package/src/migrations-postgres/005_ai_calls.sql +25 -0
- package/src/migrations-postgres/006_user_profiles.sql +11 -0
- package/src/migrations-postgres/007_session_replay_metadata.sql +10 -0
- package/src/migrations-postgres/008_session_replay_storage_bytes.sql +2 -0
- package/src/migrations-postgres/009_projects_and_keys.sql +25 -0
- package/src/migrations-postgres/010_signal_project_id.sql +18 -0
- package/src/migrations-postgres/011_default_project_seed.sql +5 -0
- package/src/migrations-postgres/012_alert_rules.sql +17 -0
- package/src/migrations-postgres/013_alert_evaluations.sql +13 -0
- package/src/migrations-postgres/014_alert_state.sql +9 -0
- package/src/migrations-postgres/015_metrics.sql +47 -0
- package/src/migrations-postgres/016_metrics_exp_histogram_summary.sql +1 -0
- package/src/migrations-postgres/017_span_dropped_counts.sql +4 -0
- package/src/migrations-postgres/018_log_flags.sql +2 -0
- package/src/migrations-postgres/019_ai_span_payloads.sql +18 -0
- package/src/migrations-postgres/020_ai_span_evaluations.sql +21 -0
- package/src/migrations-postgres/021_ai_span_session.sql +7 -0
- package/src/migrations-postgres/022_span_log_session_id.sql +7 -0
- package/src/migrations-postgres/023_service_map_indexes.sql +9 -0
- package/src/migrations-postgres/024_analysis_results.sql +41 -0
- package/src/migrations-postgres/025_stage6_autopinning_alerts.sql +17 -0
- package/src/migrations-postgres/026_obs_dashboard_project_seed.sql +14 -0
- package/src/migrations-postgres/027_identity_propagation.sql +27 -0
- package/src/migrations-postgres/028_profile_blobs.sql +48 -0
- package/src/migrations-postgres/029_telemetry_sdk_name.sql +5 -0
- package/src/migrations-postgres/030_analysis_claim.sql +5 -0
- package/src/migrations-postgres/031_agent_action_graph.sql +190 -0
- package/src/migrations-postgres/032_payload_capture_flags.sql +8 -0
- package/src/migrations-postgres/033_eval_cases.sql +55 -0
- package/src/migrations-postgres/034_eval_case_results.sql +26 -0
- package/src/migrations-postgres/035_metric_exemplars.sql +31 -0
- package/src/migrations-postgres/036_trace_instrumentation_gaps.sql +19 -0
- package/src/migrations-postgres/037_eval_runs.sql +40 -0
- package/src/migrations-postgres/038_tool_call_evidence.sql +11 -0
- package/src/migrations-postgres/039_drop_trace_instrumentation_gaps.sql +11 -0
- package/src/migrations-postgres/040_evidence_retrieval_refs.sql +47 -0
- package/src/migrations-postgres/README.md +40 -0
- package/src/otlp/acceptance.test.ts +373 -0
- package/src/otlp/decode/body.ts +127 -0
- package/src/otlp/decode/logs.ts +96 -0
- package/src/otlp/decode/metrics.ts +402 -0
- package/src/otlp/decode/traces.ts +92 -0
- package/src/otlp/decode/values.ts +150 -0
- package/src/otlp/decode.test.ts +800 -0
- package/src/otlp/decode.ts +11 -0
- package/src/otlp/gen/opentelemetry/proto/collector/logs/v1/logs_service_pb.ts +132 -0
- package/src/otlp/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.ts +158 -0
- package/src/otlp/gen/opentelemetry/proto/collector/trace/v1/trace_service_pb.ts +158 -0
- package/src/otlp/gen/opentelemetry/proto/common/v1/common_pb.ts +289 -0
- package/src/otlp/gen/opentelemetry/proto/logs/v1/logs_pb.ts +397 -0
- package/src/otlp/gen/opentelemetry/proto/metrics/v1/metrics_pb.ts +1329 -0
- package/src/otlp/gen/opentelemetry/proto/resource/v1/resource_pb.ts +86 -0
- package/src/otlp/gen/opentelemetry/proto/trace/v1/trace_pb.ts +710 -0
- package/src/otlp/response.test.ts +158 -0
- package/src/otlp/response.ts +129 -0
- package/src/plugins/_context.ts +15 -0
- package/src/plugins/action-graph-processor/enrichers.ts +45 -0
- package/src/plugins/action-graph-processor/redaction.ts +84 -0
- package/src/plugins/action-graph-processor.test.ts +1023 -0
- package/src/plugins/action-graph-processor.ts +1172 -0
- package/src/plugins/action-routes.test.ts +716 -0
- package/src/plugins/action-routes.ts +343 -0
- package/src/plugins/ai-receiver.ts +254 -0
- package/src/plugins/ai-span-payloads-processor.test.ts +90 -0
- package/src/plugins/ai-span-payloads-processor.ts +180 -0
- package/src/plugins/alerts-evaluator.test.ts +91 -0
- package/src/plugins/alerts-evaluator.ts +328 -0
- package/src/plugins/alerts-routes.ts +101 -0
- package/src/plugins/analyses-routes.ts +138 -0
- package/src/plugins/ask-routes.ts +182 -0
- package/src/plugins/bot-filter.ts +19 -0
- package/src/plugins/connected-routes/manifest.ts +531 -0
- package/src/plugins/connected-routes.test.ts +1791 -0
- package/src/plugins/connected-routes.ts +1103 -0
- package/src/plugins/dashboard-routes.ts +41 -0
- package/src/plugins/default-span-enrichment.ts +92 -0
- package/src/plugins/eval-cases-routes.test.ts +391 -0
- package/src/plugins/eval-cases-routes.ts +529 -0
- package/src/plugins/evidence-retrieval-routes.benchmark.test.ts +245 -0
- package/src/plugins/evidence-retrieval-routes.test.ts +932 -0
- package/src/plugins/evidence-retrieval-routes.ts +2179 -0
- package/src/plugins/gen-ai-normalizer.test.ts +680 -0
- package/src/plugins/gen-ai-normalizer.ts +302 -0
- package/src/plugins/identity-receiver.ts +96 -0
- package/src/plugins/issue-enrichment.ts +132 -0
- package/src/plugins/issue-insights.ts +81 -0
- package/src/plugins/logs-receiver.ts +160 -0
- package/src/plugins/metrics-receiver.ts +91 -0
- package/src/plugins/onboarding-routes.ts +54 -0
- package/src/plugins/otlp-receiver.ts +124 -0
- package/src/plugins/platform-routes.ts +165 -0
- package/src/plugins/profile-routes.ts +468 -0
- package/src/plugins/projects-routes.ts +92 -0
- package/src/plugins/query-routes.ts +220 -0
- package/src/plugins/redaction-processor.ts +132 -0
- package/src/plugins/replay-query-routes.test.ts +38 -0
- package/src/plugins/replay-query-routes.ts +199 -0
- package/src/plugins/replay-receiver.ts +81 -0
- package/src/plugins/tail-routes.test.ts +47 -0
- package/src/plugins/tail-routes.ts +42 -0
- package/src/plugins/timeline-routes.ts +244 -0
- package/src/plugins/ua-enrichment.ts +27 -0
- package/src/plugins/usage-normalization.ts +46 -0
- package/src/plugins/usage-privacy.ts +55 -0
- package/src/plugins/usage-query-routes.ts +102 -0
- package/src/plugins/usage-receiver.ts +129 -0
- package/src/plugins/users-query-routes.ts +78 -0
- package/src/plugins/utm-enrichment.ts +36 -0
|
@@ -0,0 +1,289 @@
|
|
|
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/common/v1/common.proto (package opentelemetry.proto.common.v1, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
|
|
19
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
20
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
21
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Describes the file opentelemetry/proto/common/v1/common.proto.
|
|
25
|
+
*/
|
|
26
|
+
export const file_opentelemetry_proto_common_v1_common: GenFile =
|
|
27
|
+
/*@__PURE__*/
|
|
28
|
+
fileDesc(
|
|
29
|
+
"CipvcGVudGVsZW1ldHJ5L3Byb3RvL2NvbW1vbi92MS9jb21tb24ucHJvdG8SHW9wZW50ZWxlbWV0cnkucHJvdG8uY29tbW9uLnYxIowCCghBbnlWYWx1ZRIWCgxzdHJpbmdfdmFsdWUYASABKAlIABIUCgpib29sX3ZhbHVlGAIgASgISAASEwoJaW50X3ZhbHVlGAMgASgDSAASFgoMZG91YmxlX3ZhbHVlGAQgASgBSAASQAoLYXJyYXlfdmFsdWUYBSABKAsyKS5vcGVudGVsZW1ldHJ5LnByb3RvLmNvbW1vbi52MS5BcnJheVZhbHVlSAASQwoMa3ZsaXN0X3ZhbHVlGAYgASgLMisub3BlbnRlbGVtZXRyeS5wcm90by5jb21tb24udjEuS2V5VmFsdWVMaXN0SAASFQoLYnl0ZXNfdmFsdWUYByABKAxIAEIHCgV2YWx1ZSJFCgpBcnJheVZhbHVlEjcKBnZhbHVlcxgBIAMoCzInLm9wZW50ZWxlbWV0cnkucHJvdG8uY29tbW9uLnYxLkFueVZhbHVlIkcKDEtleVZhbHVlTGlzdBI3CgZ2YWx1ZXMYASADKAsyJy5vcGVudGVsZW1ldHJ5LnByb3RvLmNvbW1vbi52MS5LZXlWYWx1ZSJPCghLZXlWYWx1ZRILCgNrZXkYASABKAkSNgoFdmFsdWUYAiABKAsyJy5vcGVudGVsZW1ldHJ5LnByb3RvLmNvbW1vbi52MS5BbnlWYWx1ZSKUAQoUSW5zdHJ1bWVudGF0aW9uU2NvcGUSDAoEbmFtZRgBIAEoCRIPCgd2ZXJzaW9uGAIgASgJEjsKCmF0dHJpYnV0ZXMYAyADKAsyJy5vcGVudGVsZW1ldHJ5LnByb3RvLmNvbW1vbi52MS5LZXlWYWx1ZRIgChhkcm9wcGVkX2F0dHJpYnV0ZXNfY291bnQYBCABKA0iWAoJRW50aXR5UmVmEhIKCnNjaGVtYV91cmwYASABKAkSDAoEdHlwZRgCIAEoCRIPCgdpZF9rZXlzGAMgAygJEhgKEGRlc2NyaXB0aW9uX2tleXMYBCADKAlCewogaW8ub3BlbnRlbGVtZXRyeS5wcm90by5jb21tb24udjFCC0NvbW1vblByb3RvUAFaKGdvLm9wZW50ZWxlbWV0cnkuaW8vcHJvdG8vb3RscC9jb21tb24vdjGqAh1PcGVuVGVsZW1ldHJ5LlByb3RvLkNvbW1vbi5WMWIGcHJvdG8z",
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* AnyValue is used to represent any type of attribute value. AnyValue may contain a
|
|
34
|
+
* primitive value such as a string or integer or it may contain an arbitrary nested
|
|
35
|
+
* object containing arrays, key-value lists and primitives.
|
|
36
|
+
*
|
|
37
|
+
* @generated from message opentelemetry.proto.common.v1.AnyValue
|
|
38
|
+
*/
|
|
39
|
+
export type AnyValue = Message<"opentelemetry.proto.common.v1.AnyValue"> & {
|
|
40
|
+
/**
|
|
41
|
+
* The value is one of the listed fields. It is valid for all values to be unspecified
|
|
42
|
+
* in which case this AnyValue is considered to be "empty".
|
|
43
|
+
*
|
|
44
|
+
* @generated from oneof opentelemetry.proto.common.v1.AnyValue.value
|
|
45
|
+
*/
|
|
46
|
+
value:
|
|
47
|
+
| {
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: string string_value = 1;
|
|
50
|
+
*/
|
|
51
|
+
value: string;
|
|
52
|
+
case: "stringValue";
|
|
53
|
+
}
|
|
54
|
+
| {
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: bool bool_value = 2;
|
|
57
|
+
*/
|
|
58
|
+
value: boolean;
|
|
59
|
+
case: "boolValue";
|
|
60
|
+
}
|
|
61
|
+
| {
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: int64 int_value = 3;
|
|
64
|
+
*/
|
|
65
|
+
value: bigint;
|
|
66
|
+
case: "intValue";
|
|
67
|
+
}
|
|
68
|
+
| {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: double double_value = 4;
|
|
71
|
+
*/
|
|
72
|
+
value: number;
|
|
73
|
+
case: "doubleValue";
|
|
74
|
+
}
|
|
75
|
+
| {
|
|
76
|
+
/**
|
|
77
|
+
* @generated from field: opentelemetry.proto.common.v1.ArrayValue array_value = 5;
|
|
78
|
+
*/
|
|
79
|
+
value: ArrayValue;
|
|
80
|
+
case: "arrayValue";
|
|
81
|
+
}
|
|
82
|
+
| {
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;
|
|
85
|
+
*/
|
|
86
|
+
value: KeyValueList;
|
|
87
|
+
case: "kvlistValue";
|
|
88
|
+
}
|
|
89
|
+
| {
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: bytes bytes_value = 7;
|
|
92
|
+
*/
|
|
93
|
+
value: Uint8Array;
|
|
94
|
+
case: "bytesValue";
|
|
95
|
+
}
|
|
96
|
+
| { case: undefined; value?: undefined };
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Describes the message opentelemetry.proto.common.v1.AnyValue.
|
|
101
|
+
* Use `create(AnyValueSchema)` to create a new message.
|
|
102
|
+
*/
|
|
103
|
+
export const AnyValueSchema: GenMessage<AnyValue> =
|
|
104
|
+
/*@__PURE__*/
|
|
105
|
+
messageDesc(file_opentelemetry_proto_common_v1_common, 0);
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* ArrayValue is a list of AnyValue messages. We need ArrayValue as a message
|
|
109
|
+
* since oneof in AnyValue does not allow repeated fields.
|
|
110
|
+
*
|
|
111
|
+
* @generated from message opentelemetry.proto.common.v1.ArrayValue
|
|
112
|
+
*/
|
|
113
|
+
export type ArrayValue = Message<"opentelemetry.proto.common.v1.ArrayValue"> & {
|
|
114
|
+
/**
|
|
115
|
+
* Array of values. The array may be empty (contain 0 elements).
|
|
116
|
+
*
|
|
117
|
+
* @generated from field: repeated opentelemetry.proto.common.v1.AnyValue values = 1;
|
|
118
|
+
*/
|
|
119
|
+
values: AnyValue[];
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Describes the message opentelemetry.proto.common.v1.ArrayValue.
|
|
124
|
+
* Use `create(ArrayValueSchema)` to create a new message.
|
|
125
|
+
*/
|
|
126
|
+
export const ArrayValueSchema: GenMessage<ArrayValue> =
|
|
127
|
+
/*@__PURE__*/
|
|
128
|
+
messageDesc(file_opentelemetry_proto_common_v1_common, 1);
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* KeyValueList is a list of KeyValue messages. We need KeyValueList as a message
|
|
132
|
+
* since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need
|
|
133
|
+
* a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to
|
|
134
|
+
* avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches
|
|
135
|
+
* are semantically equivalent.
|
|
136
|
+
*
|
|
137
|
+
* @generated from message opentelemetry.proto.common.v1.KeyValueList
|
|
138
|
+
*/
|
|
139
|
+
export type KeyValueList =
|
|
140
|
+
Message<"opentelemetry.proto.common.v1.KeyValueList"> & {
|
|
141
|
+
/**
|
|
142
|
+
* A collection of key/value pairs of key-value pairs. The list may be empty (may
|
|
143
|
+
* contain 0 elements).
|
|
144
|
+
* The keys MUST be unique (it is not allowed to have more than one
|
|
145
|
+
* value with the same key).
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: repeated opentelemetry.proto.common.v1.KeyValue values = 1;
|
|
148
|
+
*/
|
|
149
|
+
values: KeyValue[];
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Describes the message opentelemetry.proto.common.v1.KeyValueList.
|
|
154
|
+
* Use `create(KeyValueListSchema)` to create a new message.
|
|
155
|
+
*/
|
|
156
|
+
export const KeyValueListSchema: GenMessage<KeyValueList> =
|
|
157
|
+
/*@__PURE__*/
|
|
158
|
+
messageDesc(file_opentelemetry_proto_common_v1_common, 2);
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* KeyValue is a key-value pair that is used to store Span attributes, Link
|
|
162
|
+
* attributes, etc.
|
|
163
|
+
*
|
|
164
|
+
* @generated from message opentelemetry.proto.common.v1.KeyValue
|
|
165
|
+
*/
|
|
166
|
+
export type KeyValue = Message<"opentelemetry.proto.common.v1.KeyValue"> & {
|
|
167
|
+
/**
|
|
168
|
+
* @generated from field: string key = 1;
|
|
169
|
+
*/
|
|
170
|
+
key: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: opentelemetry.proto.common.v1.AnyValue value = 2;
|
|
174
|
+
*/
|
|
175
|
+
value?: AnyValue;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Describes the message opentelemetry.proto.common.v1.KeyValue.
|
|
180
|
+
* Use `create(KeyValueSchema)` to create a new message.
|
|
181
|
+
*/
|
|
182
|
+
export const KeyValueSchema: GenMessage<KeyValue> =
|
|
183
|
+
/*@__PURE__*/
|
|
184
|
+
messageDesc(file_opentelemetry_proto_common_v1_common, 3);
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* InstrumentationScope is a message representing the instrumentation scope information
|
|
188
|
+
* such as the fully qualified name and version.
|
|
189
|
+
*
|
|
190
|
+
* @generated from message opentelemetry.proto.common.v1.InstrumentationScope
|
|
191
|
+
*/
|
|
192
|
+
export type InstrumentationScope =
|
|
193
|
+
Message<"opentelemetry.proto.common.v1.InstrumentationScope"> & {
|
|
194
|
+
/**
|
|
195
|
+
* An empty instrumentation scope name means the name is unknown.
|
|
196
|
+
*
|
|
197
|
+
* @generated from field: string name = 1;
|
|
198
|
+
*/
|
|
199
|
+
name: string;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @generated from field: string version = 2;
|
|
203
|
+
*/
|
|
204
|
+
version: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Additional attributes that describe the scope. [Optional].
|
|
208
|
+
* Attribute keys MUST be unique (it is not allowed to have more than one
|
|
209
|
+
* attribute with the same key).
|
|
210
|
+
*
|
|
211
|
+
* @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 3;
|
|
212
|
+
*/
|
|
213
|
+
attributes: KeyValue[];
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @generated from field: uint32 dropped_attributes_count = 4;
|
|
217
|
+
*/
|
|
218
|
+
droppedAttributesCount: number;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Describes the message opentelemetry.proto.common.v1.InstrumentationScope.
|
|
223
|
+
* Use `create(InstrumentationScopeSchema)` to create a new message.
|
|
224
|
+
*/
|
|
225
|
+
export const InstrumentationScopeSchema: GenMessage<InstrumentationScope> =
|
|
226
|
+
/*@__PURE__*/
|
|
227
|
+
messageDesc(file_opentelemetry_proto_common_v1_common, 4);
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* A reference to an Entity.
|
|
231
|
+
* Entity represents an object of interest associated with produced telemetry: e.g spans, metrics, profiles, or logs.
|
|
232
|
+
*
|
|
233
|
+
* Status: [Development]
|
|
234
|
+
*
|
|
235
|
+
* @generated from message opentelemetry.proto.common.v1.EntityRef
|
|
236
|
+
*/
|
|
237
|
+
export type EntityRef = Message<"opentelemetry.proto.common.v1.EntityRef"> & {
|
|
238
|
+
/**
|
|
239
|
+
* The Schema URL, if known. This is the identifier of the Schema that the entity data
|
|
240
|
+
* is recorded in. To learn more about Schema URL see
|
|
241
|
+
* https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
|
|
242
|
+
*
|
|
243
|
+
* This schema_url applies to the data in this message and to the Resource attributes
|
|
244
|
+
* referenced by id_keys and description_keys.
|
|
245
|
+
* TODO: discuss if we are happy with this somewhat complicated definition of what
|
|
246
|
+
* the schema_url applies to.
|
|
247
|
+
*
|
|
248
|
+
* This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs.
|
|
249
|
+
*
|
|
250
|
+
* @generated from field: string schema_url = 1;
|
|
251
|
+
*/
|
|
252
|
+
schemaUrl: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Defines the type of the entity. MUST not change during the lifetime of the entity.
|
|
256
|
+
* For example: "service" or "host". This field is required and MUST not be empty
|
|
257
|
+
* for valid entities.
|
|
258
|
+
*
|
|
259
|
+
* @generated from field: string type = 2;
|
|
260
|
+
*/
|
|
261
|
+
type: string;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Attribute Keys that identify the entity.
|
|
265
|
+
* MUST not change during the lifetime of the entity. The Id must contain at least one attribute.
|
|
266
|
+
* These keys MUST exist in the containing {message}.attributes.
|
|
267
|
+
*
|
|
268
|
+
* @generated from field: repeated string id_keys = 3;
|
|
269
|
+
*/
|
|
270
|
+
idKeys: string[];
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Descriptive (non-identifying) attribute keys of the entity.
|
|
274
|
+
* MAY change over the lifetime of the entity. MAY be empty.
|
|
275
|
+
* These attribute keys are not part of entity's identity.
|
|
276
|
+
* These keys MUST exist in the containing {message}.attributes.
|
|
277
|
+
*
|
|
278
|
+
* @generated from field: repeated string description_keys = 4;
|
|
279
|
+
*/
|
|
280
|
+
descriptionKeys: string[];
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Describes the message opentelemetry.proto.common.v1.EntityRef.
|
|
285
|
+
* Use `create(EntityRefSchema)` to create a new message.
|
|
286
|
+
*/
|
|
287
|
+
export const EntityRefSchema: GenMessage<EntityRef> =
|
|
288
|
+
/*@__PURE__*/
|
|
289
|
+
messageDesc(file_opentelemetry_proto_common_v1_common, 5);
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
// Copyright 2020, 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
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=js"
|
|
10
|
+
// @generated from file opentelemetry/proto/logs/v1/logs.proto (package opentelemetry.proto.logs.v1, syntax proto3)
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
|
|
13
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
14
|
+
import type {
|
|
15
|
+
GenEnum,
|
|
16
|
+
GenFile,
|
|
17
|
+
GenMessage,
|
|
18
|
+
} from "@bufbuild/protobuf/codegenv2";
|
|
19
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
20
|
+
import type {
|
|
21
|
+
AnyValue,
|
|
22
|
+
InstrumentationScope,
|
|
23
|
+
KeyValue,
|
|
24
|
+
} from "../../common/v1/common_pb.js";
|
|
25
|
+
import { file_opentelemetry_proto_common_v1_common } from "../../common/v1/common_pb.js";
|
|
26
|
+
import type { Resource } from "../../resource/v1/resource_pb.js";
|
|
27
|
+
import { file_opentelemetry_proto_resource_v1_resource } from "../../resource/v1/resource_pb.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Describes the file opentelemetry/proto/logs/v1/logs.proto.
|
|
31
|
+
*/
|
|
32
|
+
export const file_opentelemetry_proto_logs_v1_logs: GenFile =
|
|
33
|
+
/*@__PURE__*/
|
|
34
|
+
fileDesc(
|
|
35
|
+
"CiZvcGVudGVsZW1ldHJ5L3Byb3RvL2xvZ3MvdjEvbG9ncy5wcm90bxIbb3BlbnRlbGVtZXRyeS5wcm90by5sb2dzLnYxIkwKCExvZ3NEYXRhEkAKDXJlc291cmNlX2xvZ3MYASADKAsyKS5vcGVudGVsZW1ldHJ5LnByb3RvLmxvZ3MudjEuUmVzb3VyY2VMb2dzIqMBCgxSZXNvdXJjZUxvZ3MSOwoIcmVzb3VyY2UYASABKAsyKS5vcGVudGVsZW1ldHJ5LnByb3RvLnJlc291cmNlLnYxLlJlc291cmNlEjoKCnNjb3BlX2xvZ3MYAiADKAsyJi5vcGVudGVsZW1ldHJ5LnByb3RvLmxvZ3MudjEuU2NvcGVMb2dzEhIKCnNjaGVtYV91cmwYAyABKAlKBgjoBxDpByKgAQoJU2NvcGVMb2dzEkIKBXNjb3BlGAEgASgLMjMub3BlbnRlbGVtZXRyeS5wcm90by5jb21tb24udjEuSW5zdHJ1bWVudGF0aW9uU2NvcGUSOwoLbG9nX3JlY29yZHMYAiADKAsyJi5vcGVudGVsZW1ldHJ5LnByb3RvLmxvZ3MudjEuTG9nUmVjb3JkEhIKCnNjaGVtYV91cmwYAyABKAkigwMKCUxvZ1JlY29yZBIWCg50aW1lX3VuaXhfbmFubxgBIAEoBhIfChdvYnNlcnZlZF90aW1lX3VuaXhfbmFubxgLIAEoBhJECg9zZXZlcml0eV9udW1iZXIYAiABKA4yKy5vcGVudGVsZW1ldHJ5LnByb3RvLmxvZ3MudjEuU2V2ZXJpdHlOdW1iZXISFQoNc2V2ZXJpdHlfdGV4dBgDIAEoCRI1CgRib2R5GAUgASgLMicub3BlbnRlbGVtZXRyeS5wcm90by5jb21tb24udjEuQW55VmFsdWUSOwoKYXR0cmlidXRlcxgGIAMoCzInLm9wZW50ZWxlbWV0cnkucHJvdG8uY29tbW9uLnYxLktleVZhbHVlEiAKGGRyb3BwZWRfYXR0cmlidXRlc19jb3VudBgHIAEoDRINCgVmbGFncxgIIAEoBxIQCgh0cmFjZV9pZBgJIAEoDBIPCgdzcGFuX2lkGAogASgMEhIKCmV2ZW50X25hbWUYDCABKAlKBAgEEAUqwwUKDlNldmVyaXR5TnVtYmVyEh8KG1NFVkVSSVRZX05VTUJFUl9VTlNQRUNJRklFRBAAEhkKFVNFVkVSSVRZX05VTUJFUl9UUkFDRRABEhoKFlNFVkVSSVRZX05VTUJFUl9UUkFDRTIQAhIaChZTRVZFUklUWV9OVU1CRVJfVFJBQ0UzEAMSGgoWU0VWRVJJVFlfTlVNQkVSX1RSQUNFNBAEEhkKFVNFVkVSSVRZX05VTUJFUl9ERUJVRxAFEhoKFlNFVkVSSVRZX05VTUJFUl9ERUJVRzIQBhIaChZTRVZFUklUWV9OVU1CRVJfREVCVUczEAcSGgoWU0VWRVJJVFlfTlVNQkVSX0RFQlVHNBAIEhgKFFNFVkVSSVRZX05VTUJFUl9JTkZPEAkSGQoVU0VWRVJJVFlfTlVNQkVSX0lORk8yEAoSGQoVU0VWRVJJVFlfTlVNQkVSX0lORk8zEAsSGQoVU0VWRVJJVFlfTlVNQkVSX0lORk80EAwSGAoUU0VWRVJJVFlfTlVNQkVSX1dBUk4QDRIZChVTRVZFUklUWV9OVU1CRVJfV0FSTjIQDhIZChVTRVZFUklUWV9OVU1CRVJfV0FSTjMQDxIZChVTRVZFUklUWV9OVU1CRVJfV0FSTjQQEBIZChVTRVZFUklUWV9OVU1CRVJfRVJST1IQERIaChZTRVZFUklUWV9OVU1CRVJfRVJST1IyEBISGgoWU0VWRVJJVFlfTlVNQkVSX0VSUk9SMxATEhoKFlNFVkVSSVRZX05VTUJFUl9FUlJPUjQQFBIZChVTRVZFUklUWV9OVU1CRVJfRkFUQUwQFRIaChZTRVZFUklUWV9OVU1CRVJfRkFUQUwyEBYSGgoWU0VWRVJJVFlfTlVNQkVSX0ZBVEFMMxAXEhoKFlNFVkVSSVRZX05VTUJFUl9GQVRBTDQQGCpZCg5Mb2dSZWNvcmRGbGFncxIfChtMT0dfUkVDT1JEX0ZMQUdTX0RPX05PVF9VU0UQABImCiFMT0dfUkVDT1JEX0ZMQUdTX1RSQUNFX0ZMQUdTX01BU0sQ/wFCcwoeaW8ub3BlbnRlbGVtZXRyeS5wcm90by5sb2dzLnYxQglMb2dzUHJvdG9QAVomZ28ub3BlbnRlbGVtZXRyeS5pby9wcm90by9vdGxwL2xvZ3MvdjGqAhtPcGVuVGVsZW1ldHJ5LlByb3RvLkxvZ3MuVjFiBnByb3RvMw",
|
|
36
|
+
[
|
|
37
|
+
file_opentelemetry_proto_common_v1_common,
|
|
38
|
+
file_opentelemetry_proto_resource_v1_resource,
|
|
39
|
+
],
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* LogsData represents the logs data that can be stored in persistent
|
|
44
|
+
* storage, OR can be embedded by other protocols that transfer OTLP logs
|
|
45
|
+
* data but do not implement the OTLP protocol.
|
|
46
|
+
*
|
|
47
|
+
* @generated from message opentelemetry.proto.logs.v1.LogsData
|
|
48
|
+
*/
|
|
49
|
+
export type LogsData = Message<"opentelemetry.proto.logs.v1.LogsData"> & {
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: repeated opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
|
|
52
|
+
*/
|
|
53
|
+
resourceLogs: ResourceLogs[];
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message opentelemetry.proto.logs.v1.LogsData.
|
|
58
|
+
* Use `create(LogsDataSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export const LogsDataSchema: GenMessage<LogsData> =
|
|
61
|
+
/*@__PURE__*/
|
|
62
|
+
messageDesc(file_opentelemetry_proto_logs_v1_logs, 0);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* A collection of ScopeLogs from a Resource.
|
|
66
|
+
*
|
|
67
|
+
* @generated from message opentelemetry.proto.logs.v1.ResourceLogs
|
|
68
|
+
*/
|
|
69
|
+
export type ResourceLogs =
|
|
70
|
+
Message<"opentelemetry.proto.logs.v1.ResourceLogs"> & {
|
|
71
|
+
/**
|
|
72
|
+
* The resource for the logs in this message.
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: opentelemetry.proto.resource.v1.Resource resource = 1;
|
|
75
|
+
*/
|
|
76
|
+
resource?: Resource;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* A list of ScopeLogs that originate from a resource.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: repeated opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
|
|
82
|
+
*/
|
|
83
|
+
scopeLogs: ScopeLogs[];
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The Schema URL, if known. This is the identifier of the Schema that the
|
|
87
|
+
* resource data is recorded in. Notably, the last part of the URL path is
|
|
88
|
+
* the version number of the schema.
|
|
89
|
+
*
|
|
90
|
+
* @generated from field: string schema_url = 3;
|
|
91
|
+
*/
|
|
92
|
+
schemaUrl: string;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Describes the message opentelemetry.proto.logs.v1.ResourceLogs.
|
|
97
|
+
* Use `create(ResourceLogsSchema)` to create a new message.
|
|
98
|
+
*/
|
|
99
|
+
export const ResourceLogsSchema: GenMessage<ResourceLogs> =
|
|
100
|
+
/*@__PURE__*/
|
|
101
|
+
messageDesc(file_opentelemetry_proto_logs_v1_logs, 1);
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* A collection of Logs produced by a Scope.
|
|
105
|
+
*
|
|
106
|
+
* @generated from message opentelemetry.proto.logs.v1.ScopeLogs
|
|
107
|
+
*/
|
|
108
|
+
export type ScopeLogs = Message<"opentelemetry.proto.logs.v1.ScopeLogs"> & {
|
|
109
|
+
/**
|
|
110
|
+
* The instrumentation scope information for the logs in this message.
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
|
|
113
|
+
*/
|
|
114
|
+
scope?: InstrumentationScope;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* A list of log records.
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: repeated opentelemetry.proto.logs.v1.LogRecord log_records = 2;
|
|
120
|
+
*/
|
|
121
|
+
logRecords: LogRecord[];
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The Schema URL, if known.
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: string schema_url = 3;
|
|
127
|
+
*/
|
|
128
|
+
schemaUrl: string;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Describes the message opentelemetry.proto.logs.v1.ScopeLogs.
|
|
133
|
+
* Use `create(ScopeLogsSchema)` to create a new message.
|
|
134
|
+
*/
|
|
135
|
+
export const ScopeLogsSchema: GenMessage<ScopeLogs> =
|
|
136
|
+
/*@__PURE__*/
|
|
137
|
+
messageDesc(file_opentelemetry_proto_logs_v1_logs, 2);
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* A log record according to OpenTelemetry Log Data Model.
|
|
141
|
+
*
|
|
142
|
+
* @generated from message opentelemetry.proto.logs.v1.LogRecord
|
|
143
|
+
*/
|
|
144
|
+
export type LogRecord = Message<"opentelemetry.proto.logs.v1.LogRecord"> & {
|
|
145
|
+
/**
|
|
146
|
+
* time_unix_nano is the time when the event occurred, measured as the
|
|
147
|
+
* number of nanoseconds since Unix epoch.
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: fixed64 time_unix_nano = 1;
|
|
150
|
+
*/
|
|
151
|
+
timeUnixNano: bigint;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Time when the event was observed by the collection system.
|
|
155
|
+
*
|
|
156
|
+
* @generated from field: fixed64 observed_time_unix_nano = 11;
|
|
157
|
+
*/
|
|
158
|
+
observedTimeUnixNano: bigint;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Numerical value of the severity, normalized to values described in
|
|
162
|
+
* Log Data Model.
|
|
163
|
+
*
|
|
164
|
+
* @generated from field: opentelemetry.proto.logs.v1.SeverityNumber severity_number = 2;
|
|
165
|
+
*/
|
|
166
|
+
severityNumber: SeverityNumber;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* The severity text (also known as log level).
|
|
170
|
+
*
|
|
171
|
+
* @generated from field: string severity_text = 3;
|
|
172
|
+
*/
|
|
173
|
+
severityText: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* A value containing the body of the log record.
|
|
177
|
+
*
|
|
178
|
+
* @generated from field: opentelemetry.proto.common.v1.AnyValue body = 5;
|
|
179
|
+
*/
|
|
180
|
+
body?: AnyValue;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Additional attributes that describe the specific event occurrence.
|
|
184
|
+
*
|
|
185
|
+
* @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 6;
|
|
186
|
+
*/
|
|
187
|
+
attributes: KeyValue[];
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @generated from field: uint32 dropped_attributes_count = 7;
|
|
191
|
+
*/
|
|
192
|
+
droppedAttributesCount: number;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Flags, a bit field. 8 least significant bits are the trace flags
|
|
196
|
+
* as defined in W3C Trace Context specification.
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: fixed32 flags = 8;
|
|
199
|
+
*/
|
|
200
|
+
flags: number;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* A unique identifier for a trace. All logs from the same trace
|
|
204
|
+
* share the same `trace_id`.
|
|
205
|
+
*
|
|
206
|
+
* @generated from field: bytes trace_id = 9;
|
|
207
|
+
*/
|
|
208
|
+
traceId: Uint8Array;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* A unique identifier for a span within a trace, assigned when the
|
|
212
|
+
* span is created.
|
|
213
|
+
*
|
|
214
|
+
* @generated from field: bytes span_id = 10;
|
|
215
|
+
*/
|
|
216
|
+
spanId: Uint8Array;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* A unique identifier of event category/type.
|
|
220
|
+
*
|
|
221
|
+
* @generated from field: string event_name = 12;
|
|
222
|
+
*/
|
|
223
|
+
eventName: string;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Describes the message opentelemetry.proto.logs.v1.LogRecord.
|
|
228
|
+
* Use `create(LogRecordSchema)` to create a new message.
|
|
229
|
+
*/
|
|
230
|
+
export const LogRecordSchema: GenMessage<LogRecord> =
|
|
231
|
+
/*@__PURE__*/
|
|
232
|
+
messageDesc(file_opentelemetry_proto_logs_v1_logs, 3);
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Possible values for LogRecord.SeverityNumber.
|
|
236
|
+
*
|
|
237
|
+
* @generated from enum opentelemetry.proto.logs.v1.SeverityNumber
|
|
238
|
+
*/
|
|
239
|
+
export enum SeverityNumber {
|
|
240
|
+
/**
|
|
241
|
+
* @generated from enum value: SEVERITY_NUMBER_UNSPECIFIED = 0;
|
|
242
|
+
*/
|
|
243
|
+
UNSPECIFIED = 0,
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @generated from enum value: SEVERITY_NUMBER_TRACE = 1;
|
|
247
|
+
*/
|
|
248
|
+
TRACE = 1,
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @generated from enum value: SEVERITY_NUMBER_TRACE2 = 2;
|
|
252
|
+
*/
|
|
253
|
+
TRACE2 = 2,
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* @generated from enum value: SEVERITY_NUMBER_TRACE3 = 3;
|
|
257
|
+
*/
|
|
258
|
+
TRACE3 = 3,
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @generated from enum value: SEVERITY_NUMBER_TRACE4 = 4;
|
|
262
|
+
*/
|
|
263
|
+
TRACE4 = 4,
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @generated from enum value: SEVERITY_NUMBER_DEBUG = 5;
|
|
267
|
+
*/
|
|
268
|
+
DEBUG = 5,
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @generated from enum value: SEVERITY_NUMBER_DEBUG2 = 6;
|
|
272
|
+
*/
|
|
273
|
+
DEBUG2 = 6,
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @generated from enum value: SEVERITY_NUMBER_DEBUG3 = 7;
|
|
277
|
+
*/
|
|
278
|
+
DEBUG3 = 7,
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* @generated from enum value: SEVERITY_NUMBER_DEBUG4 = 8;
|
|
282
|
+
*/
|
|
283
|
+
DEBUG4 = 8,
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @generated from enum value: SEVERITY_NUMBER_INFO = 9;
|
|
287
|
+
*/
|
|
288
|
+
INFO = 9,
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @generated from enum value: SEVERITY_NUMBER_INFO2 = 10;
|
|
292
|
+
*/
|
|
293
|
+
INFO2 = 10,
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* @generated from enum value: SEVERITY_NUMBER_INFO3 = 11;
|
|
297
|
+
*/
|
|
298
|
+
INFO3 = 11,
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* @generated from enum value: SEVERITY_NUMBER_INFO4 = 12;
|
|
302
|
+
*/
|
|
303
|
+
INFO4 = 12,
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* @generated from enum value: SEVERITY_NUMBER_WARN = 13;
|
|
307
|
+
*/
|
|
308
|
+
WARN = 13,
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @generated from enum value: SEVERITY_NUMBER_WARN2 = 14;
|
|
312
|
+
*/
|
|
313
|
+
WARN2 = 14,
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* @generated from enum value: SEVERITY_NUMBER_WARN3 = 15;
|
|
317
|
+
*/
|
|
318
|
+
WARN3 = 15,
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @generated from enum value: SEVERITY_NUMBER_WARN4 = 16;
|
|
322
|
+
*/
|
|
323
|
+
WARN4 = 16,
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* @generated from enum value: SEVERITY_NUMBER_ERROR = 17;
|
|
327
|
+
*/
|
|
328
|
+
ERROR = 17,
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* @generated from enum value: SEVERITY_NUMBER_ERROR2 = 18;
|
|
332
|
+
*/
|
|
333
|
+
ERROR2 = 18,
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @generated from enum value: SEVERITY_NUMBER_ERROR3 = 19;
|
|
337
|
+
*/
|
|
338
|
+
ERROR3 = 19,
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* @generated from enum value: SEVERITY_NUMBER_ERROR4 = 20;
|
|
342
|
+
*/
|
|
343
|
+
ERROR4 = 20,
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* @generated from enum value: SEVERITY_NUMBER_FATAL = 21;
|
|
347
|
+
*/
|
|
348
|
+
FATAL = 21,
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @generated from enum value: SEVERITY_NUMBER_FATAL2 = 22;
|
|
352
|
+
*/
|
|
353
|
+
FATAL2 = 22,
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* @generated from enum value: SEVERITY_NUMBER_FATAL3 = 23;
|
|
357
|
+
*/
|
|
358
|
+
FATAL3 = 23,
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* @generated from enum value: SEVERITY_NUMBER_FATAL4 = 24;
|
|
362
|
+
*/
|
|
363
|
+
FATAL4 = 24,
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Describes the enum opentelemetry.proto.logs.v1.SeverityNumber.
|
|
368
|
+
*/
|
|
369
|
+
export const SeverityNumberSchema: GenEnum<SeverityNumber> =
|
|
370
|
+
/*@__PURE__*/
|
|
371
|
+
enumDesc(file_opentelemetry_proto_logs_v1_logs, 0);
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* LogRecordFlags represents constants used to interpret the
|
|
375
|
+
* LogRecord.flags field, which is protobuf 'fixed32' type and is to
|
|
376
|
+
* be used as bit-fields.
|
|
377
|
+
*
|
|
378
|
+
* @generated from enum opentelemetry.proto.logs.v1.LogRecordFlags
|
|
379
|
+
*/
|
|
380
|
+
export enum LogRecordFlags {
|
|
381
|
+
/**
|
|
382
|
+
* @generated from enum value: LOG_RECORD_FLAGS_DO_NOT_USE = 0;
|
|
383
|
+
*/
|
|
384
|
+
DO_NOT_USE = 0,
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @generated from enum value: LOG_RECORD_FLAGS_TRACE_FLAGS_MASK = 255;
|
|
388
|
+
*/
|
|
389
|
+
TRACE_FLAGS_MASK = 255,
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Describes the enum opentelemetry.proto.logs.v1.LogRecordFlags.
|
|
394
|
+
*/
|
|
395
|
+
export const LogRecordFlagsSchema: GenEnum<LogRecordFlags> =
|
|
396
|
+
/*@__PURE__*/
|
|
397
|
+
enumDesc(file_opentelemetry_proto_logs_v1_logs, 1);
|