@ancplua/qyl-api-schema 3.0.0 → 4.0.0
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/common/types.tsp +12 -0
- package/generated/json-schema/qyl-api-schema.json +151 -1
- package/generated/openapi/qyl.openapi.json +151 -1
- package/generated/otel-keys.gen.tsp +92 -92
- package/generated/ts-runtime/api.d.ts +34 -0
- package/generated/ts-runtime/api.js +8 -0
- package/models/health.tsp +12 -0
- package/models/mcp-tools.tsp +70 -0
- package/package.json +4 -3
package/common/types.tsp
CHANGED
|
@@ -178,6 +178,18 @@ scalar Temperature extends float64;
|
|
|
178
178
|
@maxLength(64)
|
|
179
179
|
scalar Sha256Hash extends string;
|
|
180
180
|
|
|
181
|
+
// The revision is a content hash of the emitted OpenAPI artifact, not a package
|
|
182
|
+
// version: two builds of the same contract share it whatever their package
|
|
183
|
+
// versions say, and any contract edit changes it without anyone remembering to
|
|
184
|
+
// bump anything. Truncated to 16 hex characters because it is compared for
|
|
185
|
+
// equality, never used as a security boundary.
|
|
186
|
+
@doc("Deterministic revision of the generated API contract: 'sha256:' followed by the first 16 hex characters of the SHA-256 digest of the emitted OpenAPI document.")
|
|
187
|
+
@pattern("^sha256:[a-f0-9]{16}$")
|
|
188
|
+
@minLength(23)
|
|
189
|
+
@maxLength(23)
|
|
190
|
+
@example("sha256:0f1e2d3c4b5a6978")
|
|
191
|
+
scalar ContractRevision extends string;
|
|
192
|
+
|
|
181
193
|
@doc("Semantic version string (e.g., 1.2.3)")
|
|
182
194
|
@pattern("^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$")
|
|
183
195
|
@example("2.1.0")
|
|
@@ -207,6 +207,16 @@
|
|
|
207
207
|
"application/json"
|
|
208
208
|
]
|
|
209
209
|
},
|
|
210
|
+
"Common.ContractRevision": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"minLength": 23,
|
|
213
|
+
"maxLength": 23,
|
|
214
|
+
"pattern": "^sha256:[a-f0-9]{16}$",
|
|
215
|
+
"description": "Deterministic revision of the generated API contract: 'sha256:' followed by the first 16 hex characters of the SHA-256 digest of the emitted OpenAPI document.",
|
|
216
|
+
"examples": [
|
|
217
|
+
"sha256:0f1e2d3c4b5a6978"
|
|
218
|
+
]
|
|
219
|
+
},
|
|
210
220
|
"Common.CostUsd": {
|
|
211
221
|
"type": "number",
|
|
212
222
|
"format": "double",
|
|
@@ -1362,7 +1372,8 @@
|
|
|
1362
1372
|
"required": [
|
|
1363
1373
|
"status",
|
|
1364
1374
|
"total_duration_ms",
|
|
1365
|
-
"entries"
|
|
1375
|
+
"entries",
|
|
1376
|
+
"contract_revision"
|
|
1366
1377
|
],
|
|
1367
1378
|
"properties": {
|
|
1368
1379
|
"status": {
|
|
@@ -1377,6 +1388,10 @@
|
|
|
1377
1388
|
"unevaluatedProperties": {
|
|
1378
1389
|
"$ref": "#/$defs/Health.HealthCheckEntry"
|
|
1379
1390
|
}
|
|
1391
|
+
},
|
|
1392
|
+
"contract_revision": {
|
|
1393
|
+
"$ref": "#/$defs/Common.ContractRevision",
|
|
1394
|
+
"description": "Revision of the API contract this process serves, for the client-side startup handshake."
|
|
1380
1395
|
}
|
|
1381
1396
|
},
|
|
1382
1397
|
"unevaluatedProperties": {
|
|
@@ -1393,6 +1408,141 @@
|
|
|
1393
1408
|
],
|
|
1394
1409
|
"description": "Health state reported by a qyl-managed process."
|
|
1395
1410
|
},
|
|
1411
|
+
"Mcp.Tools.CiLogInput": {
|
|
1412
|
+
"type": "object",
|
|
1413
|
+
"properties": {
|
|
1414
|
+
"run_id": {
|
|
1415
|
+
"$ref": "#/$defs/Common.SessionId",
|
|
1416
|
+
"description": "Session id of one CI run for a per-leg phase breakdown; omit to list recent runs."
|
|
1417
|
+
},
|
|
1418
|
+
"limit": {
|
|
1419
|
+
"type": "integer",
|
|
1420
|
+
"format": "int32",
|
|
1421
|
+
"minimum": 1,
|
|
1422
|
+
"maximum": 50,
|
|
1423
|
+
"description": "Maximum CI runs to list.",
|
|
1424
|
+
"default": 10
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
"unevaluatedProperties": {
|
|
1428
|
+
"not": {}
|
|
1429
|
+
},
|
|
1430
|
+
"description": "Input for ci_log."
|
|
1431
|
+
},
|
|
1432
|
+
"Mcp.Tools.CiLogOutput": {
|
|
1433
|
+
"type": "object",
|
|
1434
|
+
"required": [
|
|
1435
|
+
"mode"
|
|
1436
|
+
],
|
|
1437
|
+
"properties": {
|
|
1438
|
+
"runs": {
|
|
1439
|
+
"type": "array",
|
|
1440
|
+
"items": {
|
|
1441
|
+
"$ref": "#/$defs/Mcp.Tools.CiRunSummary"
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1444
|
+
"run_id": {
|
|
1445
|
+
"$ref": "#/$defs/Common.SessionId"
|
|
1446
|
+
},
|
|
1447
|
+
"phases": {
|
|
1448
|
+
"type": "array",
|
|
1449
|
+
"items": {
|
|
1450
|
+
"$ref": "#/$defs/Mcp.Tools.CiPhase"
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
"mode": {
|
|
1454
|
+
"$ref": "#/$defs/Mcp.Tools.McpDataMode"
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
"unevaluatedProperties": {
|
|
1458
|
+
"not": {}
|
|
1459
|
+
},
|
|
1460
|
+
"description": "Structured output for ci_log: recent runs, or one run's phases."
|
|
1461
|
+
},
|
|
1462
|
+
"Mcp.Tools.CiPhase": {
|
|
1463
|
+
"type": "object",
|
|
1464
|
+
"required": [
|
|
1465
|
+
"leg",
|
|
1466
|
+
"phase",
|
|
1467
|
+
"status",
|
|
1468
|
+
"duration_ms"
|
|
1469
|
+
],
|
|
1470
|
+
"properties": {
|
|
1471
|
+
"leg": {
|
|
1472
|
+
"type": "string",
|
|
1473
|
+
"description": "Value of the span's ci.leg attribute, falling back to its service name."
|
|
1474
|
+
},
|
|
1475
|
+
"phase": {
|
|
1476
|
+
"type": "string",
|
|
1477
|
+
"description": "Span name, which the CI emitter convention sets to the phase name."
|
|
1478
|
+
},
|
|
1479
|
+
"status": {
|
|
1480
|
+
"$ref": "#/$defs/Mcp.Tools.CiPhaseStatus"
|
|
1481
|
+
},
|
|
1482
|
+
"duration_ms": {
|
|
1483
|
+
"$ref": "#/$defs/Common.DurationMs"
|
|
1484
|
+
},
|
|
1485
|
+
"message": {
|
|
1486
|
+
"type": "string",
|
|
1487
|
+
"description": "Span status message, present on a failed phase."
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
"unevaluatedProperties": {
|
|
1491
|
+
"not": {}
|
|
1492
|
+
},
|
|
1493
|
+
"description": "One phase span of a CI run, attributed to the leg that executed it."
|
|
1494
|
+
},
|
|
1495
|
+
"Mcp.Tools.CiPhaseStatus": {
|
|
1496
|
+
"type": "string",
|
|
1497
|
+
"enum": [
|
|
1498
|
+
"ok",
|
|
1499
|
+
"error",
|
|
1500
|
+
"unset"
|
|
1501
|
+
],
|
|
1502
|
+
"description": "Outcome of one CI phase span, projected from its OpenTelemetry span status."
|
|
1503
|
+
},
|
|
1504
|
+
"Mcp.Tools.CiRunSummary": {
|
|
1505
|
+
"type": "object",
|
|
1506
|
+
"required": [
|
|
1507
|
+
"run_id",
|
|
1508
|
+
"state",
|
|
1509
|
+
"start_time",
|
|
1510
|
+
"error_count",
|
|
1511
|
+
"services"
|
|
1512
|
+
],
|
|
1513
|
+
"properties": {
|
|
1514
|
+
"run_id": {
|
|
1515
|
+
"$ref": "#/$defs/Common.SessionId"
|
|
1516
|
+
},
|
|
1517
|
+
"state": {
|
|
1518
|
+
"$ref": "#/$defs/Domains.Observe.Session.SessionState"
|
|
1519
|
+
},
|
|
1520
|
+
"start_time": {
|
|
1521
|
+
"type": "string",
|
|
1522
|
+
"format": "date-time"
|
|
1523
|
+
},
|
|
1524
|
+
"duration_ms": {
|
|
1525
|
+
"$ref": "#/$defs/Common.DurationMs"
|
|
1526
|
+
},
|
|
1527
|
+
"error_count": {
|
|
1528
|
+
"type": "integer",
|
|
1529
|
+
"format": "int32",
|
|
1530
|
+
"minimum": 0,
|
|
1531
|
+
"description": "Spans in the run that ended with an error status."
|
|
1532
|
+
},
|
|
1533
|
+
"services": {
|
|
1534
|
+
"type": "array",
|
|
1535
|
+
"items": {
|
|
1536
|
+
"type": "string"
|
|
1537
|
+
},
|
|
1538
|
+
"description": "Service names observed in the run, at least one of which is CI-emitted."
|
|
1539
|
+
}
|
|
1540
|
+
},
|
|
1541
|
+
"unevaluatedProperties": {
|
|
1542
|
+
"not": {}
|
|
1543
|
+
},
|
|
1544
|
+
"description": "One CI run, summarized from the session its telemetry is grouped under."
|
|
1545
|
+
},
|
|
1396
1546
|
"Mcp.Tools.DisplayMcpDashboardInput": {
|
|
1397
1547
|
"type": "object",
|
|
1398
1548
|
"properties": {
|
|
@@ -12558,6 +12558,16 @@
|
|
|
12558
12558
|
"application/json"
|
|
12559
12559
|
]
|
|
12560
12560
|
},
|
|
12561
|
+
"Common.ContractRevision": {
|
|
12562
|
+
"type": "string",
|
|
12563
|
+
"minLength": 23,
|
|
12564
|
+
"maxLength": 23,
|
|
12565
|
+
"pattern": "^sha256:[a-f0-9]{16}$",
|
|
12566
|
+
"description": "Deterministic revision of the generated API contract: 'sha256:' followed by the first 16 hex characters of the SHA-256 digest of the emitted OpenAPI document.",
|
|
12567
|
+
"examples": [
|
|
12568
|
+
"sha256:0f1e2d3c4b5a6978"
|
|
12569
|
+
]
|
|
12570
|
+
},
|
|
12561
12571
|
"Common.CostUsd": {
|
|
12562
12572
|
"type": "number",
|
|
12563
12573
|
"format": "double",
|
|
@@ -13711,7 +13721,8 @@
|
|
|
13711
13721
|
"required": [
|
|
13712
13722
|
"status",
|
|
13713
13723
|
"total_duration_ms",
|
|
13714
|
-
"entries"
|
|
13724
|
+
"entries",
|
|
13725
|
+
"contract_revision"
|
|
13715
13726
|
],
|
|
13716
13727
|
"properties": {
|
|
13717
13728
|
"status": {
|
|
@@ -13726,6 +13737,10 @@
|
|
|
13726
13737
|
"unevaluatedProperties": {
|
|
13727
13738
|
"$ref": "#/components/schemas/Health.HealthCheckEntry"
|
|
13728
13739
|
}
|
|
13740
|
+
},
|
|
13741
|
+
"contract_revision": {
|
|
13742
|
+
"$ref": "#/components/schemas/Common.ContractRevision",
|
|
13743
|
+
"description": "Revision of the API contract this process serves, for the client-side startup handshake."
|
|
13729
13744
|
}
|
|
13730
13745
|
},
|
|
13731
13746
|
"unevaluatedProperties": {
|
|
@@ -13742,6 +13757,141 @@
|
|
|
13742
13757
|
],
|
|
13743
13758
|
"description": "Health state reported by a qyl-managed process."
|
|
13744
13759
|
},
|
|
13760
|
+
"Mcp.Tools.CiLogInput": {
|
|
13761
|
+
"type": "object",
|
|
13762
|
+
"properties": {
|
|
13763
|
+
"run_id": {
|
|
13764
|
+
"$ref": "#/components/schemas/Common.SessionId",
|
|
13765
|
+
"description": "Session id of one CI run for a per-leg phase breakdown; omit to list recent runs."
|
|
13766
|
+
},
|
|
13767
|
+
"limit": {
|
|
13768
|
+
"type": "integer",
|
|
13769
|
+
"format": "int32",
|
|
13770
|
+
"minimum": 1,
|
|
13771
|
+
"maximum": 50,
|
|
13772
|
+
"description": "Maximum CI runs to list.",
|
|
13773
|
+
"default": 10
|
|
13774
|
+
}
|
|
13775
|
+
},
|
|
13776
|
+
"unevaluatedProperties": {
|
|
13777
|
+
"not": {}
|
|
13778
|
+
},
|
|
13779
|
+
"description": "Input for ci_log."
|
|
13780
|
+
},
|
|
13781
|
+
"Mcp.Tools.CiLogOutput": {
|
|
13782
|
+
"type": "object",
|
|
13783
|
+
"required": [
|
|
13784
|
+
"mode"
|
|
13785
|
+
],
|
|
13786
|
+
"properties": {
|
|
13787
|
+
"runs": {
|
|
13788
|
+
"type": "array",
|
|
13789
|
+
"items": {
|
|
13790
|
+
"$ref": "#/components/schemas/Mcp.Tools.CiRunSummary"
|
|
13791
|
+
}
|
|
13792
|
+
},
|
|
13793
|
+
"run_id": {
|
|
13794
|
+
"$ref": "#/components/schemas/Common.SessionId"
|
|
13795
|
+
},
|
|
13796
|
+
"phases": {
|
|
13797
|
+
"type": "array",
|
|
13798
|
+
"items": {
|
|
13799
|
+
"$ref": "#/components/schemas/Mcp.Tools.CiPhase"
|
|
13800
|
+
}
|
|
13801
|
+
},
|
|
13802
|
+
"mode": {
|
|
13803
|
+
"$ref": "#/components/schemas/Mcp.Tools.McpDataMode"
|
|
13804
|
+
}
|
|
13805
|
+
},
|
|
13806
|
+
"unevaluatedProperties": {
|
|
13807
|
+
"not": {}
|
|
13808
|
+
},
|
|
13809
|
+
"description": "Structured output for ci_log: recent runs, or one run's phases."
|
|
13810
|
+
},
|
|
13811
|
+
"Mcp.Tools.CiPhase": {
|
|
13812
|
+
"type": "object",
|
|
13813
|
+
"required": [
|
|
13814
|
+
"leg",
|
|
13815
|
+
"phase",
|
|
13816
|
+
"status",
|
|
13817
|
+
"duration_ms"
|
|
13818
|
+
],
|
|
13819
|
+
"properties": {
|
|
13820
|
+
"leg": {
|
|
13821
|
+
"type": "string",
|
|
13822
|
+
"description": "Value of the span's ci.leg attribute, falling back to its service name."
|
|
13823
|
+
},
|
|
13824
|
+
"phase": {
|
|
13825
|
+
"type": "string",
|
|
13826
|
+
"description": "Span name, which the CI emitter convention sets to the phase name."
|
|
13827
|
+
},
|
|
13828
|
+
"status": {
|
|
13829
|
+
"$ref": "#/components/schemas/Mcp.Tools.CiPhaseStatus"
|
|
13830
|
+
},
|
|
13831
|
+
"duration_ms": {
|
|
13832
|
+
"$ref": "#/components/schemas/Common.DurationMs"
|
|
13833
|
+
},
|
|
13834
|
+
"message": {
|
|
13835
|
+
"type": "string",
|
|
13836
|
+
"description": "Span status message, present on a failed phase."
|
|
13837
|
+
}
|
|
13838
|
+
},
|
|
13839
|
+
"unevaluatedProperties": {
|
|
13840
|
+
"not": {}
|
|
13841
|
+
},
|
|
13842
|
+
"description": "One phase span of a CI run, attributed to the leg that executed it."
|
|
13843
|
+
},
|
|
13844
|
+
"Mcp.Tools.CiPhaseStatus": {
|
|
13845
|
+
"type": "string",
|
|
13846
|
+
"enum": [
|
|
13847
|
+
"ok",
|
|
13848
|
+
"error",
|
|
13849
|
+
"unset"
|
|
13850
|
+
],
|
|
13851
|
+
"description": "Outcome of one CI phase span, projected from its OpenTelemetry span status."
|
|
13852
|
+
},
|
|
13853
|
+
"Mcp.Tools.CiRunSummary": {
|
|
13854
|
+
"type": "object",
|
|
13855
|
+
"required": [
|
|
13856
|
+
"run_id",
|
|
13857
|
+
"state",
|
|
13858
|
+
"start_time",
|
|
13859
|
+
"error_count",
|
|
13860
|
+
"services"
|
|
13861
|
+
],
|
|
13862
|
+
"properties": {
|
|
13863
|
+
"run_id": {
|
|
13864
|
+
"$ref": "#/components/schemas/Common.SessionId"
|
|
13865
|
+
},
|
|
13866
|
+
"state": {
|
|
13867
|
+
"$ref": "#/components/schemas/Domains.Observe.Session.SessionState"
|
|
13868
|
+
},
|
|
13869
|
+
"start_time": {
|
|
13870
|
+
"type": "string",
|
|
13871
|
+
"format": "date-time"
|
|
13872
|
+
},
|
|
13873
|
+
"duration_ms": {
|
|
13874
|
+
"$ref": "#/components/schemas/Common.DurationMs"
|
|
13875
|
+
},
|
|
13876
|
+
"error_count": {
|
|
13877
|
+
"type": "integer",
|
|
13878
|
+
"format": "int32",
|
|
13879
|
+
"minimum": 0,
|
|
13880
|
+
"description": "Spans in the run that ended with an error status."
|
|
13881
|
+
},
|
|
13882
|
+
"services": {
|
|
13883
|
+
"type": "array",
|
|
13884
|
+
"items": {
|
|
13885
|
+
"type": "string"
|
|
13886
|
+
},
|
|
13887
|
+
"description": "Service names observed in the run, at least one of which is CI-emitted."
|
|
13888
|
+
}
|
|
13889
|
+
},
|
|
13890
|
+
"unevaluatedProperties": {
|
|
13891
|
+
"not": {}
|
|
13892
|
+
},
|
|
13893
|
+
"description": "One CI run, summarized from the session its telemetry is grouped under."
|
|
13894
|
+
},
|
|
13745
13895
|
"Mcp.Tools.DisplayMcpDashboardInput": {
|
|
13746
13896
|
"type": "object",
|
|
13747
13897
|
"properties": {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// <auto-generated/>
|
|
2
2
|
// Generated by qyl's Weaver pipeline (emit_typespec_keys.py) from:
|
|
3
3
|
// open-telemetry/semantic-conventions v1.43.0 (89aae438b3b3b0a8dd33003c9d70592baf7dbd0d)
|
|
4
|
-
// open-telemetry/semantic-conventions-genai
|
|
4
|
+
// open-telemetry/semantic-conventions-genai 64cfaa612a1af8472b2f063374fbe3c9e6cea2ab (64cfaa612a1af8472b2f063374fbe3c9e6cea2ab)
|
|
5
5
|
// Schema: https://opentelemetry.io/schemas/1.43.0
|
|
6
6
|
// GenAI schema: https://opentelemetry.io/schemas/gen-ai-dev/1.42.0-dev
|
|
7
7
|
// Licensed under Apache-2.0 (inherited from OpenTelemetry upstream)
|
|
8
8
|
// </auto-generated>
|
|
9
9
|
//
|
|
10
10
|
// DO NOT EDIT THIS FILE.
|
|
11
|
-
// Regenerate: Qyl.
|
|
11
|
+
// Regenerate: Qyl.Telemetry.SemanticConventions repo →
|
|
12
12
|
// src/…SourceGeneration/scripts/generate.sh (refresh resolved-registry.json)
|
|
13
13
|
// src/…SourceGeneration/scripts/emit_typespec_keys.py --write <this file>
|
|
14
14
|
|
|
15
|
-
namespace Qyl.
|
|
15
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Android {
|
|
16
16
|
/** This attribute represents the state of the application. */
|
|
17
17
|
const AppState: string = "android.app.state";
|
|
18
18
|
/** Uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found in the [Android API levels documentation](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels). */
|
|
@@ -21,7 +21,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Android {
|
|
|
21
21
|
#deprecated "Replaced by android.app.state."
|
|
22
22
|
const State: string = "android.state";
|
|
23
23
|
}
|
|
24
|
-
namespace Qyl.
|
|
24
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.App {
|
|
25
25
|
/** Unique identifier for a particular build or compilation of the application. */
|
|
26
26
|
const BuildId: string = "app.build_id";
|
|
27
27
|
/** A unique identifier representing an instance of an end-user facing app crash. */
|
|
@@ -47,7 +47,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.App {
|
|
|
47
47
|
/** The name of an application widget. */
|
|
48
48
|
const WidgetName: string = "app.widget.name";
|
|
49
49
|
}
|
|
50
|
-
namespace Qyl.
|
|
50
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Artifact {
|
|
51
51
|
/** The provenance filename of the built attestation which directly relates to the build artifact filename. This filename SHOULD accompany the artifact at publish time. See the [SLSA Relationship](https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations) specification for more information. */
|
|
52
52
|
const AttestationFilename: string = "artifact.attestation.filename";
|
|
53
53
|
/** The full [hash value (see glossary)](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf), of the built attestation. Some envelopes in the [software attestation space](https://github.com/in-toto/attestation/tree/main/spec) also refer to this as the **digest**. */
|
|
@@ -63,7 +63,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Artifact {
|
|
|
63
63
|
/** The version of the artifact. */
|
|
64
64
|
const Version: string = "artifact.version";
|
|
65
65
|
}
|
|
66
|
-
namespace Qyl.
|
|
66
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Aspnetcore {
|
|
67
67
|
/** The result of the authentication operation. */
|
|
68
68
|
const AuthenticationResult: string = "aspnetcore.authentication.result";
|
|
69
69
|
/** The identifier that names a particular authentication handler. */
|
|
@@ -111,7 +111,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Aspnetcore {
|
|
|
111
111
|
/** A value that indicates whether the user is authenticated. */
|
|
112
112
|
const UserIsAuthenticated: string = "aspnetcore.user.is_authenticated";
|
|
113
113
|
}
|
|
114
|
-
namespace Qyl.
|
|
114
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Aws {
|
|
115
115
|
/** The unique identifier of the AWS Bedrock Guardrail. A [guardrail](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html) helps safeguard and prevent unwanted behavior from model responses or user messages. */
|
|
116
116
|
const BedrockGuardrailId: string = "aws.bedrock.guardrail.id";
|
|
117
117
|
/** The unique identifier of the AWS Bedrock Knowledge base. A [knowledge base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html) is a bank of information that can be queried by models to generate more relevant responses and augment prompts. */
|
|
@@ -217,7 +217,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Aws {
|
|
|
217
217
|
/** The ARN of the AWS Step Functions State Machine. */
|
|
218
218
|
const StepFunctionsStateMachineArn: string = "aws.step_functions.state_machine.arn";
|
|
219
219
|
}
|
|
220
|
-
namespace Qyl.
|
|
220
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Az {
|
|
221
221
|
/** Deprecated, use `azure.resource_provider.namespace` instead. */
|
|
222
222
|
#deprecated "Replaced by azure.resource_provider.namespace."
|
|
223
223
|
const Namespace: string = "az.namespace";
|
|
@@ -225,7 +225,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Az {
|
|
|
225
225
|
#deprecated "Replaced by azure.service.request.id."
|
|
226
226
|
const ServiceRequestId: string = "az.service_request_id";
|
|
227
227
|
}
|
|
228
|
-
namespace Qyl.
|
|
228
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Azure {
|
|
229
229
|
/** The unique identifier of the client instance. */
|
|
230
230
|
const ClientId: string = "azure.client.id";
|
|
231
231
|
/** Cosmos client connection mode. */
|
|
@@ -247,7 +247,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Azure {
|
|
|
247
247
|
/** The unique identifier of the service request. It's generated by the Azure service and returned with the response. */
|
|
248
248
|
const ServiceRequestId: string = "azure.service.request.id";
|
|
249
249
|
}
|
|
250
|
-
namespace Qyl.
|
|
250
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Browser {
|
|
251
251
|
/** Array of brand name and version separated by a space */
|
|
252
252
|
const Brands: string = "browser.brands";
|
|
253
253
|
/** Absolute URL of the current browser document according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986). */
|
|
@@ -259,7 +259,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Browser {
|
|
|
259
259
|
/** The platform on which the browser is running */
|
|
260
260
|
const Platform: string = "browser.platform";
|
|
261
261
|
}
|
|
262
|
-
namespace Qyl.
|
|
262
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Cassandra {
|
|
263
263
|
/** The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). */
|
|
264
264
|
const ConsistencyLevel: string = "cassandra.consistency.level";
|
|
265
265
|
/** The data center of the coordinating node for a query. */
|
|
@@ -273,7 +273,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Cassandra {
|
|
|
273
273
|
/** The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. */
|
|
274
274
|
const SpeculativeExecutionCount: string = "cassandra.speculative_execution.count";
|
|
275
275
|
}
|
|
276
|
-
namespace Qyl.
|
|
276
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Cicd {
|
|
277
277
|
/** The kind of action a pipeline run is performing. */
|
|
278
278
|
const PipelineActionName: string = "cicd.pipeline.action.name";
|
|
279
279
|
/** The human readable name of the pipeline within a CI/CD system. */
|
|
@@ -307,13 +307,13 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Cicd {
|
|
|
307
307
|
/** The [URL](https://wikipedia.org/wiki/URL) of the worker, providing the complete address in order to locate and identify the worker. */
|
|
308
308
|
const WorkerUrlFull: string = "cicd.worker.url.full";
|
|
309
309
|
}
|
|
310
|
-
namespace Qyl.
|
|
310
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Client {
|
|
311
311
|
/** Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. */
|
|
312
312
|
const Address: string = "client.address";
|
|
313
313
|
/** Client port number. */
|
|
314
314
|
const Port: string = "client.port";
|
|
315
315
|
}
|
|
316
|
-
namespace Qyl.
|
|
316
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Cloud {
|
|
317
317
|
/** The cloud account ID the resource is assigned to. */
|
|
318
318
|
const AccountId: string = "cloud.account.id";
|
|
319
319
|
/** Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. */
|
|
@@ -327,7 +327,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Cloud {
|
|
|
327
327
|
/** Cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) on AWS, a [fully qualified resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) on Azure, a [full resource name](https://google.aip.dev/122#full-resource-names) on GCP) */
|
|
328
328
|
const ResourceId: string = "cloud.resource_id";
|
|
329
329
|
}
|
|
330
|
-
namespace Qyl.
|
|
330
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Cloudevents {
|
|
331
331
|
/** The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. */
|
|
332
332
|
const EventId: string = "cloudevents.event_id";
|
|
333
333
|
/** The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened. */
|
|
@@ -339,7 +339,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Cloudevents {
|
|
|
339
339
|
/** The [event_type](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type) contains a value describing the type of event related to the originating occurrence. */
|
|
340
340
|
const EventType: string = "cloudevents.event_type";
|
|
341
341
|
}
|
|
342
|
-
namespace Qyl.
|
|
342
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Cloudfoundry {
|
|
343
343
|
/** The guid of the application. */
|
|
344
344
|
const AppId: string = "cloudfoundry.app.id";
|
|
345
345
|
/** The index of the application instance. 0 when just one instance is active. */
|
|
@@ -363,7 +363,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Cloudfoundry {
|
|
|
363
363
|
/** A guid describing the concrete instance of the event source. */
|
|
364
364
|
const SystemInstanceId: string = "cloudfoundry.system.instance.id";
|
|
365
365
|
}
|
|
366
|
-
namespace Qyl.
|
|
366
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Code {
|
|
367
367
|
/** Deprecated, use `code.column.number` */
|
|
368
368
|
#deprecated "Replaced by code.column.number."
|
|
369
369
|
const Column: string = "code.column";
|
|
@@ -390,7 +390,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Code {
|
|
|
390
390
|
/** A stacktrace as a string in the natural representation for the language runtime. The representation is identical to [`exception.stacktrace`](/docs/exceptions/exceptions-spans.md#stacktrace-representation). This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Location'. This constraint is imposed to prevent redundancy and maintain data integrity. */
|
|
391
391
|
const Stacktrace: string = "code.stacktrace";
|
|
392
392
|
}
|
|
393
|
-
namespace Qyl.
|
|
393
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Container {
|
|
394
394
|
/** The command used to run the container (i.e. the command name). */
|
|
395
395
|
const Command: string = "container.command";
|
|
396
396
|
/** All the command arguments (including the command/executable itself) run by the container. */
|
|
@@ -431,17 +431,17 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Container {
|
|
|
431
431
|
/** The version of the runtime of this process, as returned by the runtime without modification. */
|
|
432
432
|
const RuntimeVersion: string = "container.runtime.version";
|
|
433
433
|
}
|
|
434
|
-
namespace Qyl.
|
|
434
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Cpu {
|
|
435
435
|
/** The logical CPU number [0..n-1] */
|
|
436
436
|
const LogicalNumber: string = "cpu.logical_number";
|
|
437
437
|
/** The mode of the CPU */
|
|
438
438
|
const Mode: string = "cpu.mode";
|
|
439
439
|
}
|
|
440
|
-
namespace Qyl.
|
|
440
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Cpython {
|
|
441
441
|
/** Value of the garbage collector collection generation. */
|
|
442
442
|
const GcGeneration: string = "cpython.gc.generation";
|
|
443
443
|
}
|
|
444
|
-
namespace Qyl.
|
|
444
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Db {
|
|
445
445
|
/** Deprecated, use `cassandra.consistency.level` instead. */
|
|
446
446
|
#deprecated "Replaced by cassandra.consistency.level."
|
|
447
447
|
const CassandraConsistencyLevel: string = "db.cassandra.consistency_level";
|
|
@@ -573,7 +573,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Db {
|
|
|
573
573
|
#deprecated "Removed, no replacement."
|
|
574
574
|
const User: string = "db.user";
|
|
575
575
|
}
|
|
576
|
-
namespace Qyl.
|
|
576
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Deployment {
|
|
577
577
|
/** Deprecated, use `deployment.environment.name` instead. */
|
|
578
578
|
#deprecated "Replaced by deployment.environment.name."
|
|
579
579
|
const Environment: string = "deployment.environment";
|
|
@@ -586,13 +586,13 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Deployment {
|
|
|
586
586
|
/** The status of the deployment. */
|
|
587
587
|
const Status: string = "deployment.status";
|
|
588
588
|
}
|
|
589
|
-
namespace Qyl.
|
|
589
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Destination {
|
|
590
590
|
/** Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. */
|
|
591
591
|
const Address: string = "destination.address";
|
|
592
592
|
/** Destination port number */
|
|
593
593
|
const Port: string = "destination.port";
|
|
594
594
|
}
|
|
595
|
-
namespace Qyl.
|
|
595
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Device {
|
|
596
596
|
/** A unique identifier representing the device */
|
|
597
597
|
const Id: string = "device.id";
|
|
598
598
|
/** The name of the device manufacturer */
|
|
@@ -602,25 +602,25 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Device {
|
|
|
602
602
|
/** The marketing name for the device model */
|
|
603
603
|
const ModelName: string = "device.model.name";
|
|
604
604
|
}
|
|
605
|
-
namespace Qyl.
|
|
605
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Disk {
|
|
606
606
|
/** The disk IO operation direction. */
|
|
607
607
|
const IoDirection: string = "disk.io.direction";
|
|
608
608
|
}
|
|
609
|
-
namespace Qyl.
|
|
609
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Dns {
|
|
610
610
|
/** The list of IPv4 or IPv6 addresses resolved during DNS lookup. */
|
|
611
611
|
const Answers: string = "dns.answers";
|
|
612
612
|
/** The name being queried. */
|
|
613
613
|
const QuestionName: string = "dns.question.name";
|
|
614
614
|
}
|
|
615
|
-
namespace Qyl.
|
|
615
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Dotnet {
|
|
616
616
|
/** Name of the garbage collector managed heap generation. */
|
|
617
617
|
const GcHeapGeneration: string = "dotnet.gc.heap.generation";
|
|
618
618
|
}
|
|
619
|
-
namespace Qyl.
|
|
619
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Elasticsearch {
|
|
620
620
|
/** Represents the human-readable identifier of the node/instance to which a request was routed. */
|
|
621
621
|
const NodeName: string = "elasticsearch.node.name";
|
|
622
622
|
}
|
|
623
|
-
namespace Qyl.
|
|
623
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Enduser {
|
|
624
624
|
/** Unique identifier of an end user in the system. It maybe a username, email address, or other identifier. */
|
|
625
625
|
const Id: string = "enduser.id";
|
|
626
626
|
/** Pseudonymous identifier of an end user. This identifier should be a random value that is not directly linked or associated with the end user's actual identity. */
|
|
@@ -632,19 +632,19 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Enduser {
|
|
|
632
632
|
#deprecated "Removed, no replacement."
|
|
633
633
|
const Scope: string = "enduser.scope";
|
|
634
634
|
}
|
|
635
|
-
namespace Qyl.
|
|
635
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Error {
|
|
636
636
|
/** A message providing more detail about an error in human-readable form. */
|
|
637
637
|
#deprecated "Removed, no replacement."
|
|
638
638
|
const Message: string = "error.message";
|
|
639
639
|
/** Describes a class of error the operation ended with. */
|
|
640
640
|
const Type: string = "error.type";
|
|
641
641
|
}
|
|
642
|
-
namespace Qyl.
|
|
642
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Event {
|
|
643
643
|
/** Identifies the class / type of event. */
|
|
644
644
|
#deprecated "The value of this attribute MUST now be set as the value of the EventName field on the LogRecord to indicate that the LogRecord represents an Event."
|
|
645
645
|
const Name: string = "event.name";
|
|
646
646
|
}
|
|
647
|
-
namespace Qyl.
|
|
647
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Exception {
|
|
648
648
|
/** Indicates that the exception is escaping the scope of the span. */
|
|
649
649
|
#deprecated "Removed, no replacement."
|
|
650
650
|
const Escaped: string = "exception.escaped";
|
|
@@ -655,7 +655,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Exception {
|
|
|
655
655
|
/** The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. */
|
|
656
656
|
const Type: string = "exception.type";
|
|
657
657
|
}
|
|
658
|
-
namespace Qyl.
|
|
658
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Faas {
|
|
659
659
|
/** A boolean that is true if the serverless function is executed for the first time (aka cold-start). */
|
|
660
660
|
const Coldstart: string = "faas.coldstart";
|
|
661
661
|
/** A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). */
|
|
@@ -689,7 +689,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Faas {
|
|
|
689
689
|
/** The immutable version of the function being executed. */
|
|
690
690
|
const Version: string = "faas.version";
|
|
691
691
|
}
|
|
692
|
-
namespace Qyl.
|
|
692
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.FeatureFlag {
|
|
693
693
|
/** The unique identifier for the flag evaluation context. For example, the targeting key. */
|
|
694
694
|
const ContextId: string = "feature_flag.context.id";
|
|
695
695
|
/** A message providing more detail about an error that occurred during feature flag evaluation in human-readable form. */
|
|
@@ -718,7 +718,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.FeatureFlag {
|
|
|
718
718
|
/** The version of the ruleset used during the evaluation. This may be any stable value which uniquely identifies the ruleset. */
|
|
719
719
|
const Version: string = "feature_flag.version";
|
|
720
720
|
}
|
|
721
|
-
namespace Qyl.
|
|
721
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.File {
|
|
722
722
|
/** Time when the file was last accessed, in ISO 8601 format. */
|
|
723
723
|
const Accessed: string = "file.accessed";
|
|
724
724
|
/** Array of file attributes. */
|
|
@@ -762,7 +762,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.File {
|
|
|
762
762
|
/** Path to the target of a symbolic link. */
|
|
763
763
|
const SymbolicLinkTargetPath: string = "file.symbolic_link.target_path";
|
|
764
764
|
}
|
|
765
|
-
namespace Qyl.
|
|
765
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Gcp {
|
|
766
766
|
/** The container within GCP where the AppHub application is defined. */
|
|
767
767
|
const ApphubApplicationContainer: string = "gcp.apphub.application.container";
|
|
768
768
|
/** The name of the application as configured in AppHub. */
|
|
@@ -818,7 +818,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Gcp {
|
|
|
818
818
|
/** The instance name of a GCE instance. This is the value provided by `host.name`, the visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of the instance as defined by the [default internal DNS name](https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names). */
|
|
819
819
|
const GceInstanceName: string = "gcp.gce.instance.name";
|
|
820
820
|
}
|
|
821
|
-
namespace Qyl.
|
|
821
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.GenAi {
|
|
822
822
|
/** Free-form description of the GenAI agent provided by the application. */
|
|
823
823
|
const AgentDescription: string = "gen_ai.agent.description";
|
|
824
824
|
/** The unique and stable identifier of the GenAI hosted agent resource. */
|
|
@@ -942,7 +942,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.GenAi {
|
|
|
942
942
|
/** Human-readable name of the GenAI workflow provided by the application. */
|
|
943
943
|
const WorkflowName: string = "gen_ai.workflow.name";
|
|
944
944
|
}
|
|
945
|
-
namespace Qyl.
|
|
945
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Geo {
|
|
946
946
|
/** Two-letter code representing continent’s name. */
|
|
947
947
|
const ContinentCode: string = "geo.continent.code";
|
|
948
948
|
/** Two-letter ISO Country Code ([ISO 3166-1 alpha2](https://wikipedia.org/wiki/ISO_3166-1#Codes)). */
|
|
@@ -958,7 +958,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Geo {
|
|
|
958
958
|
/** Region ISO code ([ISO 3166-2](https://wikipedia.org/wiki/ISO_3166-2)). */
|
|
959
959
|
const RegionIsoCode: string = "geo.region.iso_code";
|
|
960
960
|
}
|
|
961
|
-
namespace Qyl.
|
|
961
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Go {
|
|
962
962
|
/** The detailed state of the CPU. */
|
|
963
963
|
const CpuDetailedState: string = "go.cpu.detailed_state";
|
|
964
964
|
/** The state of the CPU. */
|
|
@@ -968,7 +968,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Go {
|
|
|
968
968
|
/** The type of memory. */
|
|
969
969
|
const MemoryType: string = "go.memory.type";
|
|
970
970
|
}
|
|
971
|
-
namespace Qyl.
|
|
971
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Graphql {
|
|
972
972
|
/** The GraphQL document being executed. */
|
|
973
973
|
const Document: string = "graphql.document";
|
|
974
974
|
/** The name of the operation being executed. */
|
|
@@ -976,7 +976,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Graphql {
|
|
|
976
976
|
/** The type of the operation being executed. */
|
|
977
977
|
const OperationType: string = "graphql.operation.type";
|
|
978
978
|
}
|
|
979
|
-
namespace Qyl.
|
|
979
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Heroku {
|
|
980
980
|
/** Unique identifier for the application */
|
|
981
981
|
const AppId: string = "heroku.app.id";
|
|
982
982
|
/** Commit hash for the current release */
|
|
@@ -984,7 +984,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Heroku {
|
|
|
984
984
|
/** Time and date the release was created */
|
|
985
985
|
const ReleaseCreationTimestamp: string = "heroku.release.creation_timestamp";
|
|
986
986
|
}
|
|
987
|
-
namespace Qyl.
|
|
987
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Host {
|
|
988
988
|
/** The CPU architecture the host system is running on. */
|
|
989
989
|
const Arch: string = "host.arch";
|
|
990
990
|
/** The amount of level 2 memory cache available to the processor (in Bytes). */
|
|
@@ -1016,7 +1016,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Host {
|
|
|
1016
1016
|
/** Type of host. For Cloud, this must be the machine type. */
|
|
1017
1017
|
const Type: string = "host.type";
|
|
1018
1018
|
}
|
|
1019
|
-
namespace Qyl.
|
|
1019
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Http {
|
|
1020
1020
|
/** Deprecated, use `client.address` instead. */
|
|
1021
1021
|
#deprecated "Replaced by client.address."
|
|
1022
1022
|
const ClientIp: string = "http.client_ip";
|
|
@@ -1084,7 +1084,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Http {
|
|
|
1084
1084
|
#deprecated "Replaced by user_agent.original."
|
|
1085
1085
|
const UserAgent: string = "http.user_agent";
|
|
1086
1086
|
}
|
|
1087
|
-
namespace Qyl.
|
|
1087
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Hw {
|
|
1088
1088
|
/** Design capacity in Watts-hours or Ampere-hours */
|
|
1089
1089
|
const BatteryCapacity: string = "hw.battery.capacity";
|
|
1090
1090
|
/** Battery [chemistry](https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html), e.g. Lithium-Ion, Nickel-Cadmium, etc. */
|
|
@@ -1140,20 +1140,20 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Hw {
|
|
|
1140
1140
|
/** Vendor name of the hardware component */
|
|
1141
1141
|
const Vendor: string = "hw.vendor";
|
|
1142
1142
|
}
|
|
1143
|
-
namespace Qyl.
|
|
1143
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Ios {
|
|
1144
1144
|
/** This attribute represents the state of the application. */
|
|
1145
1145
|
const AppState: string = "ios.app.state";
|
|
1146
1146
|
/** Deprecated. Use the `ios.app.state` attribute. */
|
|
1147
1147
|
#deprecated "Replaced by ios.app.state."
|
|
1148
1148
|
const State: string = "ios.state";
|
|
1149
1149
|
}
|
|
1150
|
-
namespace Qyl.
|
|
1150
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Jsonrpc {
|
|
1151
1151
|
/** Protocol version, as specified in the `jsonrpc` property of the request and its corresponding response. */
|
|
1152
1152
|
const ProtocolVersion: string = "jsonrpc.protocol.version";
|
|
1153
1153
|
/** A string representation of the `id` property of the request and its corresponding response. */
|
|
1154
1154
|
const RequestId: string = "jsonrpc.request.id";
|
|
1155
1155
|
}
|
|
1156
|
-
namespace Qyl.
|
|
1156
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Jvm {
|
|
1157
1157
|
/** Name of the buffer pool. */
|
|
1158
1158
|
const BufferPoolName: string = "jvm.buffer.pool.name";
|
|
1159
1159
|
/** Name of the garbage collector action. */
|
|
@@ -1171,7 +1171,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Jvm {
|
|
|
1171
1171
|
/** State of the thread. */
|
|
1172
1172
|
const ThreadState: string = "jvm.thread.state";
|
|
1173
1173
|
}
|
|
1174
|
-
namespace Qyl.
|
|
1174
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.K8s {
|
|
1175
1175
|
/** The name of the cluster. */
|
|
1176
1176
|
const ClusterName: string = "k8s.cluster.name";
|
|
1177
1177
|
/** A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. */
|
|
@@ -1354,12 +1354,12 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.K8s {
|
|
|
1354
1354
|
/** The type of the K8s volume. */
|
|
1355
1355
|
const VolumeType: string = "k8s.volume.type";
|
|
1356
1356
|
}
|
|
1357
|
-
namespace Qyl.
|
|
1357
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Linux {
|
|
1358
1358
|
/** The Linux Slab memory state */
|
|
1359
1359
|
#deprecated "Replaced by system.memory.linux.slab.state."
|
|
1360
1360
|
const MemorySlabState: string = "linux.memory.slab.state";
|
|
1361
1361
|
}
|
|
1362
|
-
namespace Qyl.
|
|
1362
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Log {
|
|
1363
1363
|
/** The basename of the file. */
|
|
1364
1364
|
const FileName: string = "log.file.name";
|
|
1365
1365
|
/** The basename of the file, with symlinks resolved. */
|
|
@@ -1375,11 +1375,11 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Log {
|
|
|
1375
1375
|
/** A unique identifier for the Log Record. */
|
|
1376
1376
|
const RecordUid: string = "log.record.uid";
|
|
1377
1377
|
}
|
|
1378
|
-
namespace Qyl.
|
|
1378
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Mainframe {
|
|
1379
1379
|
/** Name of the logical partition that hosts a systems with a mainframe operating system. */
|
|
1380
1380
|
const LparName: string = "mainframe.lpar.name";
|
|
1381
1381
|
}
|
|
1382
|
-
namespace Qyl.
|
|
1382
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Mcp {
|
|
1383
1383
|
/** The name of the request or notification method. */
|
|
1384
1384
|
const MethodName: string = "mcp.method.name";
|
|
1385
1385
|
/** The [version](https://modelcontextprotocol.io/specification/versioning) of the Model Context Protocol used. */
|
|
@@ -1389,7 +1389,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Mcp {
|
|
|
1389
1389
|
/** Identifies [MCP session](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#session-management). */
|
|
1390
1390
|
const SessionId: string = "mcp.session.id";
|
|
1391
1391
|
}
|
|
1392
|
-
namespace Qyl.
|
|
1392
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Message {
|
|
1393
1393
|
/** Deprecated, no replacement at this time. */
|
|
1394
1394
|
#deprecated "Removed, no replacement."
|
|
1395
1395
|
const CompressedSize: string = "message.compressed_size";
|
|
@@ -1403,7 +1403,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Message {
|
|
|
1403
1403
|
#deprecated "Removed, no replacement."
|
|
1404
1404
|
const UncompressedSize: string = "message.uncompressed_size";
|
|
1405
1405
|
}
|
|
1406
|
-
namespace Qyl.
|
|
1406
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Messaging {
|
|
1407
1407
|
/** The number of messages sent, received, or processed in the scope of the batching operation. */
|
|
1408
1408
|
const BatchMessageCount: string = "messaging.batch.message_count";
|
|
1409
1409
|
/** A unique identifier for the client that consumes or produces a message. */
|
|
@@ -1506,7 +1506,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Messaging {
|
|
|
1506
1506
|
/** The messaging system as identified by the client instrumentation. */
|
|
1507
1507
|
const System: string = "messaging.system";
|
|
1508
1508
|
}
|
|
1509
|
-
namespace Qyl.
|
|
1509
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Net {
|
|
1510
1510
|
/** Deprecated, use `network.local.address`. */
|
|
1511
1511
|
#deprecated "Replaced by network.local.address."
|
|
1512
1512
|
const HostIp: string = "net.host.ip";
|
|
@@ -1553,7 +1553,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Net {
|
|
|
1553
1553
|
#deprecated "Replaced by network.transport."
|
|
1554
1554
|
const Transport: string = "net.transport";
|
|
1555
1555
|
}
|
|
1556
|
-
namespace Qyl.
|
|
1556
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Network {
|
|
1557
1557
|
/** The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. */
|
|
1558
1558
|
const CarrierIcc: string = "network.carrier.icc";
|
|
1559
1559
|
/** The mobile carrier country code. */
|
|
@@ -1589,21 +1589,21 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Network {
|
|
|
1589
1589
|
/** [OSI network layer](https://wikipedia.org/wiki/Network_layer) or non-OSI equivalent. */
|
|
1590
1590
|
const Type: string = "network.type";
|
|
1591
1591
|
}
|
|
1592
|
-
namespace Qyl.
|
|
1592
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Nfs {
|
|
1593
1593
|
/** NFSv4+ operation name. */
|
|
1594
1594
|
const OperationName: string = "nfs.operation.name";
|
|
1595
1595
|
/** Linux: one of "hit" (NFSD_STATS_RC_HITS), "miss" (NFSD_STATS_RC_MISSES), or "nocache" (NFSD_STATS_RC_NOCACHE -- uncacheable) */
|
|
1596
1596
|
const ServerRepcacheStatus: string = "nfs.server.repcache.status";
|
|
1597
1597
|
}
|
|
1598
|
-
namespace Qyl.
|
|
1598
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Nodejs {
|
|
1599
1599
|
/** The state of event loop time. */
|
|
1600
1600
|
const EventloopState: string = "nodejs.eventloop.state";
|
|
1601
1601
|
}
|
|
1602
|
-
namespace Qyl.
|
|
1602
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Oci {
|
|
1603
1603
|
/** The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. */
|
|
1604
1604
|
const ManifestDigest: string = "oci.manifest.digest";
|
|
1605
1605
|
}
|
|
1606
|
-
namespace Qyl.
|
|
1606
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.OncRpc {
|
|
1607
1607
|
/** ONC/Sun RPC procedure name. */
|
|
1608
1608
|
const ProcedureName: string = "onc_rpc.procedure.name";
|
|
1609
1609
|
/** ONC/Sun RPC procedure number. */
|
|
@@ -1613,7 +1613,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.OncRpc {
|
|
|
1613
1613
|
/** ONC/Sun RPC program version. */
|
|
1614
1614
|
const Version: string = "onc_rpc.version";
|
|
1615
1615
|
}
|
|
1616
|
-
namespace Qyl.
|
|
1616
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Openai {
|
|
1617
1617
|
/** The type of OpenAI API being used. */
|
|
1618
1618
|
const ApiType: string = "openai.api.type";
|
|
1619
1619
|
/** The service tier requested. May be a specific tier, default, or auto. */
|
|
@@ -1623,17 +1623,17 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Openai {
|
|
|
1623
1623
|
/** A fingerprint to track any eventual change in the Generative AI environment. */
|
|
1624
1624
|
const ResponseSystemFingerprint: string = "openai.response.system_fingerprint";
|
|
1625
1625
|
}
|
|
1626
|
-
namespace Qyl.
|
|
1626
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Openshift {
|
|
1627
1627
|
/** The name of the cluster quota. */
|
|
1628
1628
|
const ClusterquotaName: string = "openshift.clusterquota.name";
|
|
1629
1629
|
/** The UID of the cluster quota. */
|
|
1630
1630
|
const ClusterquotaUid: string = "openshift.clusterquota.uid";
|
|
1631
1631
|
}
|
|
1632
|
-
namespace Qyl.
|
|
1632
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Opentracing {
|
|
1633
1633
|
/** Parent-child Reference type */
|
|
1634
1634
|
const RefType: string = "opentracing.ref_type";
|
|
1635
1635
|
}
|
|
1636
|
-
namespace Qyl.
|
|
1636
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Oracle {
|
|
1637
1637
|
/** The database domain associated with the connection. */
|
|
1638
1638
|
const DbDomain: string = "oracle.db.domain";
|
|
1639
1639
|
/** The instance name associated with the connection in an Oracle Real Application Clusters environment. */
|
|
@@ -1645,11 +1645,11 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Oracle {
|
|
|
1645
1645
|
/** The service name currently associated with the database connection. */
|
|
1646
1646
|
const DbService: string = "oracle.db.service";
|
|
1647
1647
|
}
|
|
1648
|
-
namespace Qyl.
|
|
1648
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.OracleCloud {
|
|
1649
1649
|
/** The OCI realm identifier that indicates the isolated partition in which the tenancy and its resources reside. */
|
|
1650
1650
|
const Realm: string = "oracle_cloud.realm";
|
|
1651
1651
|
}
|
|
1652
|
-
namespace Qyl.
|
|
1652
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Os {
|
|
1653
1653
|
/** Unique identifier for a particular build or compilation of the operating system. */
|
|
1654
1654
|
const BuildId: string = "os.build_id";
|
|
1655
1655
|
/** Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. */
|
|
@@ -1661,7 +1661,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Os {
|
|
|
1661
1661
|
/** The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). */
|
|
1662
1662
|
const Version: string = "os.version";
|
|
1663
1663
|
}
|
|
1664
|
-
namespace Qyl.
|
|
1664
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Otel {
|
|
1665
1665
|
/** A name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance. */
|
|
1666
1666
|
const ComponentName: string = "otel.component.name";
|
|
1667
1667
|
/** A name identifying the type of the OpenTelemetry component. */
|
|
@@ -1689,17 +1689,17 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Otel {
|
|
|
1689
1689
|
/** Description of the Status if it has a value, otherwise not set. */
|
|
1690
1690
|
const StatusDescription: string = "otel.status_description";
|
|
1691
1691
|
}
|
|
1692
|
-
namespace Qyl.
|
|
1692
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Peer {
|
|
1693
1693
|
/** The [`service.name`](/docs/resource/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. */
|
|
1694
1694
|
#deprecated "Replaced by service.peer.name."
|
|
1695
1695
|
const Service: string = "peer.service";
|
|
1696
1696
|
}
|
|
1697
|
-
namespace Qyl.
|
|
1697
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Pool {
|
|
1698
1698
|
/** Deprecated, use `db.client.connection.pool.name` instead. */
|
|
1699
1699
|
#deprecated "Replaced by db.client.connection.pool.name."
|
|
1700
1700
|
const Name: string = "pool.name";
|
|
1701
1701
|
}
|
|
1702
|
-
namespace Qyl.
|
|
1702
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Pprof {
|
|
1703
1703
|
/** Provides an indication that multiple symbols map to this location's address, for example due to identical code folding by the linker. In that case the line information represents one of the multiple symbols. This field must be recomputed when the symbolization state of the profile changes. */
|
|
1704
1704
|
const LocationIsFolded: string = "pprof.location.is_folded";
|
|
1705
1705
|
/** Indicates that there are filenames related to this mapping. */
|
|
@@ -1723,7 +1723,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Pprof {
|
|
|
1723
1723
|
/** Records the indexes of the sample types in the original profile. */
|
|
1724
1724
|
const ScopeSampleTypeOrder: string = "pprof.scope.sample_type_order";
|
|
1725
1725
|
}
|
|
1726
|
-
namespace Qyl.
|
|
1726
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Process {
|
|
1727
1727
|
/** Length of the process.command_args array */
|
|
1728
1728
|
const ArgsCount: string = "process.args_count";
|
|
1729
1729
|
/** The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. */
|
|
@@ -1802,11 +1802,11 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Process {
|
|
|
1802
1802
|
/** The working directory of the process. */
|
|
1803
1803
|
const WorkingDirectory: string = "process.working_directory";
|
|
1804
1804
|
}
|
|
1805
|
-
namespace Qyl.
|
|
1805
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Profile {
|
|
1806
1806
|
/** Describes the interpreter or compiler of a single frame. */
|
|
1807
1807
|
const FrameType: string = "profile.frame.type";
|
|
1808
1808
|
}
|
|
1809
|
-
namespace Qyl.
|
|
1809
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Rpc {
|
|
1810
1810
|
/** Deprecated, use `rpc.response.status_code` attribute instead. */
|
|
1811
1811
|
#deprecated "Replaced by rpc.response.status_code."
|
|
1812
1812
|
const ConnectRpcErrorCode: string = "rpc.connect_rpc.error_code";
|
|
@@ -1868,7 +1868,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Rpc {
|
|
|
1868
1868
|
/** The Remote Procedure Call (RPC) system. */
|
|
1869
1869
|
const SystemName: string = "rpc.system.name";
|
|
1870
1870
|
}
|
|
1871
|
-
namespace Qyl.
|
|
1871
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.SecurityRule {
|
|
1872
1872
|
/** A categorization value keyword used by the entity using the rule for detection of this event */
|
|
1873
1873
|
const Category: string = "security_rule.category";
|
|
1874
1874
|
/** The description of the rule generating the event. */
|
|
@@ -1886,13 +1886,13 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.SecurityRule {
|
|
|
1886
1886
|
/** The version / revision of the rule being used for analysis. */
|
|
1887
1887
|
const Version: string = "security_rule.version";
|
|
1888
1888
|
}
|
|
1889
|
-
namespace Qyl.
|
|
1889
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Server {
|
|
1890
1890
|
/** Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. */
|
|
1891
1891
|
const Address: string = "server.address";
|
|
1892
1892
|
/** Server port number. */
|
|
1893
1893
|
const Port: string = "server.port";
|
|
1894
1894
|
}
|
|
1895
|
-
namespace Qyl.
|
|
1895
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Service {
|
|
1896
1896
|
/** The operational criticality of the service. */
|
|
1897
1897
|
const Criticality: string = "service.criticality";
|
|
1898
1898
|
/** The string ID of the service instance. */
|
|
@@ -1908,30 +1908,30 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Service {
|
|
|
1908
1908
|
/** The version string of the service component. The format is not defined by these conventions. */
|
|
1909
1909
|
const Version: string = "service.version";
|
|
1910
1910
|
}
|
|
1911
|
-
namespace Qyl.
|
|
1911
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Session {
|
|
1912
1912
|
/** A unique id to identify a session. */
|
|
1913
1913
|
const Id: string = "session.id";
|
|
1914
1914
|
/** The previous `session.id` for this user, when known. */
|
|
1915
1915
|
const PreviousId: string = "session.previous_id";
|
|
1916
1916
|
}
|
|
1917
|
-
namespace Qyl.
|
|
1917
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Signalr {
|
|
1918
1918
|
/** SignalR HTTP connection closure status. */
|
|
1919
1919
|
const ConnectionStatus: string = "signalr.connection.status";
|
|
1920
1920
|
/** [SignalR transport type](https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md) */
|
|
1921
1921
|
const Transport: string = "signalr.transport";
|
|
1922
1922
|
}
|
|
1923
|
-
namespace Qyl.
|
|
1923
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Source {
|
|
1924
1924
|
/** Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. */
|
|
1925
1925
|
const Address: string = "source.address";
|
|
1926
1926
|
/** Source port number */
|
|
1927
1927
|
const Port: string = "source.port";
|
|
1928
1928
|
}
|
|
1929
|
-
namespace Qyl.
|
|
1929
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.State {
|
|
1930
1930
|
/** Deprecated, use `db.client.connection.state` instead. */
|
|
1931
1931
|
#deprecated "Replaced by db.client.connection.state."
|
|
1932
1932
|
const State: string = "state";
|
|
1933
1933
|
}
|
|
1934
|
-
namespace Qyl.
|
|
1934
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.System {
|
|
1935
1935
|
/** Deprecated, use `cpu.logical_number` instead. */
|
|
1936
1936
|
#deprecated "Replaced by cpu.logical_number."
|
|
1937
1937
|
const CpuLogicalNumber: string = "system.cpu.logical_number";
|
|
@@ -1973,7 +1973,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.System {
|
|
|
1973
1973
|
#deprecated "Replaced by process.state."
|
|
1974
1974
|
const ProcessesStatus: string = "system.processes.status";
|
|
1975
1975
|
}
|
|
1976
|
-
namespace Qyl.
|
|
1976
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Telemetry {
|
|
1977
1977
|
/** The name of the auto instrumentation agent or distribution, if used. */
|
|
1978
1978
|
const DistroName: string = "telemetry.distro.name";
|
|
1979
1979
|
/** The version string of the auto instrumentation agent or distribution, if used. */
|
|
@@ -1985,7 +1985,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Telemetry {
|
|
|
1985
1985
|
/** The version string of the telemetry SDK. */
|
|
1986
1986
|
const SdkVersion: string = "telemetry.sdk.version";
|
|
1987
1987
|
}
|
|
1988
|
-
namespace Qyl.
|
|
1988
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Test {
|
|
1989
1989
|
/** The fully qualified human readable name of the [test case](https://wikipedia.org/wiki/Test_case). */
|
|
1990
1990
|
const CaseName: string = "test.case.name";
|
|
1991
1991
|
/** The status of the actual test case result from test execution. */
|
|
@@ -1995,13 +1995,13 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Test {
|
|
|
1995
1995
|
/** The status of the test suite run. */
|
|
1996
1996
|
const SuiteRunStatus: string = "test.suite.run.status";
|
|
1997
1997
|
}
|
|
1998
|
-
namespace Qyl.
|
|
1998
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Thread {
|
|
1999
1999
|
/** Current "managed" thread ID (as opposed to OS thread ID). */
|
|
2000
2000
|
const Id: string = "thread.id";
|
|
2001
2001
|
/** Current thread name. */
|
|
2002
2002
|
const Name: string = "thread.name";
|
|
2003
2003
|
}
|
|
2004
|
-
namespace Qyl.
|
|
2004
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Tls {
|
|
2005
2005
|
/** String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection. */
|
|
2006
2006
|
const Cipher: string = "tls.cipher";
|
|
2007
2007
|
/** PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. */
|
|
@@ -2062,7 +2062,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Tls {
|
|
|
2062
2062
|
/** Distinguished name of subject of the x.509 certificate presented by the server. */
|
|
2063
2063
|
const ServerSubject: string = "tls.server.subject";
|
|
2064
2064
|
}
|
|
2065
|
-
namespace Qyl.
|
|
2065
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Url {
|
|
2066
2066
|
/** Domain extracted from the `url.full`, such as "opentelemetry.io". */
|
|
2067
2067
|
const Domain: string = "url.domain";
|
|
2068
2068
|
/** The file extension extracted from the `url.full`, excluding the leading dot. */
|
|
@@ -2090,7 +2090,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Url {
|
|
|
2090
2090
|
/** The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. */
|
|
2091
2091
|
const TopLevelDomain: string = "url.top_level_domain";
|
|
2092
2092
|
}
|
|
2093
|
-
namespace Qyl.
|
|
2093
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.User {
|
|
2094
2094
|
/** User email address. */
|
|
2095
2095
|
const Email: string = "user.email";
|
|
2096
2096
|
/** User's full name */
|
|
@@ -2104,7 +2104,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.User {
|
|
|
2104
2104
|
/** Array of user roles at the time of the event. */
|
|
2105
2105
|
const Roles: string = "user.roles";
|
|
2106
2106
|
}
|
|
2107
|
-
namespace Qyl.
|
|
2107
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.UserAgent {
|
|
2108
2108
|
/** Name of the user-agent extracted from original. Usually refers to the browser's name. */
|
|
2109
2109
|
const Name: string = "user_agent.name";
|
|
2110
2110
|
/** Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. */
|
|
@@ -2118,7 +2118,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.UserAgent {
|
|
|
2118
2118
|
/** Version of the user-agent extracted from original. Usually refers to the browser's version */
|
|
2119
2119
|
const Version: string = "user_agent.version";
|
|
2120
2120
|
}
|
|
2121
|
-
namespace Qyl.
|
|
2121
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.V8js {
|
|
2122
2122
|
/** The type of garbage collection. */
|
|
2123
2123
|
const GcType: string = "v8js.gc.type";
|
|
2124
2124
|
/** The name of the space type of heap memory. */
|
|
@@ -2126,7 +2126,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.V8js {
|
|
|
2126
2126
|
/** The type of resource keeping the event loop active. */
|
|
2127
2127
|
const ResourceType: string = "v8js.resource.type";
|
|
2128
2128
|
}
|
|
2129
|
-
namespace Qyl.
|
|
2129
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Vcs {
|
|
2130
2130
|
/** The ID of the change (pull request/merge request/changelist) if applicable. This is usually a unique (within repository) identifier generated by the VCS system. */
|
|
2131
2131
|
const ChangeId: string = "vcs.change.id";
|
|
2132
2132
|
/** The state of the change (pull request/merge request/changelist). */
|
|
@@ -2175,7 +2175,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Vcs {
|
|
|
2175
2175
|
/** The type of revision comparison. */
|
|
2176
2176
|
const RevisionDeltaDirection: string = "vcs.revision_delta.direction";
|
|
2177
2177
|
}
|
|
2178
|
-
namespace Qyl.
|
|
2178
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Webengine {
|
|
2179
2179
|
/** Additional description of the web engine (e.g. detailed version and edition information). */
|
|
2180
2180
|
const Description: string = "webengine.description";
|
|
2181
2181
|
/** The name of the web engine. */
|
|
@@ -2183,7 +2183,7 @@ namespace Qyl.OpenTelemetry.SemanticConventions.Keys.Webengine {
|
|
|
2183
2183
|
/** The version of the web engine. */
|
|
2184
2184
|
const Version: string = "webengine.version";
|
|
2185
2185
|
}
|
|
2186
|
-
namespace Qyl.
|
|
2186
|
+
namespace Qyl.Telemetry.SemanticConventions.Keys.Zos {
|
|
2187
2187
|
/** The System Management Facility (SMF) Identifier uniquely identified a z/OS system within a SYSPLEX or mainframe environment and is used for system and performance analysis. */
|
|
2188
2188
|
const SmfId: string = "zos.smf.id";
|
|
2189
2189
|
/** The name of the SYSPLEX to which the z/OS system belongs too. */
|
|
@@ -356,6 +356,12 @@ export declare const McpDataModeValues: {
|
|
|
356
356
|
readonly demo: "demo";
|
|
357
357
|
};
|
|
358
358
|
export type McpDataMode = typeof McpDataModeValues[keyof typeof McpDataModeValues];
|
|
359
|
+
export declare const CiPhaseStatusValues: {
|
|
360
|
+
readonly ok: "ok";
|
|
361
|
+
readonly error: "error";
|
|
362
|
+
readonly unset: "unset";
|
|
363
|
+
};
|
|
364
|
+
export type CiPhaseStatus = typeof CiPhaseStatusValues[keyof typeof CiPhaseStatusValues];
|
|
359
365
|
export declare const FetchTelemetryViewValues: {
|
|
360
366
|
readonly traces: "traces";
|
|
361
367
|
readonly trace: "trace";
|
|
@@ -703,6 +709,7 @@ export interface HealthReport {
|
|
|
703
709
|
"status": HealthStatus;
|
|
704
710
|
"total_duration_ms": number;
|
|
705
711
|
"entries": Record<string, HealthCheckEntry>;
|
|
712
|
+
"contract_revision": string;
|
|
706
713
|
}
|
|
707
714
|
export interface RunnerResourceState {
|
|
708
715
|
"name": string;
|
|
@@ -1305,6 +1312,31 @@ export interface SearchLogsOutput {
|
|
|
1305
1312
|
"logs": LogRecord[];
|
|
1306
1313
|
"mode": McpDataMode;
|
|
1307
1314
|
}
|
|
1315
|
+
export interface CiLogInput {
|
|
1316
|
+
"run_id"?: SessionId;
|
|
1317
|
+
"limit"?: number;
|
|
1318
|
+
}
|
|
1319
|
+
export interface CiRunSummary {
|
|
1320
|
+
"run_id": SessionId;
|
|
1321
|
+
"state": SessionState;
|
|
1322
|
+
"start_time": string;
|
|
1323
|
+
"duration_ms"?: number;
|
|
1324
|
+
"error_count": number;
|
|
1325
|
+
"services": string[];
|
|
1326
|
+
}
|
|
1327
|
+
export interface CiPhase {
|
|
1328
|
+
"leg": string;
|
|
1329
|
+
"phase": string;
|
|
1330
|
+
"status": CiPhaseStatus;
|
|
1331
|
+
"duration_ms": number;
|
|
1332
|
+
"message"?: string;
|
|
1333
|
+
}
|
|
1334
|
+
export interface CiLogOutput {
|
|
1335
|
+
"runs"?: CiRunSummary[];
|
|
1336
|
+
"run_id"?: SessionId;
|
|
1337
|
+
"phases"?: CiPhase[];
|
|
1338
|
+
"mode": McpDataMode;
|
|
1339
|
+
}
|
|
1308
1340
|
export interface FetchTelemetryInput {
|
|
1309
1341
|
"view": FetchTelemetryView;
|
|
1310
1342
|
"trace_id"?: TraceId;
|
|
@@ -1354,3 +1386,5 @@ export interface CursorPageSessionEntity {
|
|
|
1354
1386
|
"prev_cursor"?: string;
|
|
1355
1387
|
"has_more": boolean;
|
|
1356
1388
|
}
|
|
1389
|
+
/** Revision of the API contract these types were emitted from; compare against HealthReport.contract_revision. */
|
|
1390
|
+
export declare const CONTRACT_REVISION: string;
|
|
@@ -284,9 +284,17 @@ export const McpDataModeValues = {
|
|
|
284
284
|
"live": "live",
|
|
285
285
|
"demo": "demo",
|
|
286
286
|
};
|
|
287
|
+
export const CiPhaseStatusValues = {
|
|
288
|
+
"ok": "ok",
|
|
289
|
+
"error": "error",
|
|
290
|
+
"unset": "unset",
|
|
291
|
+
};
|
|
287
292
|
export const FetchTelemetryViewValues = {
|
|
288
293
|
"traces": "traces",
|
|
289
294
|
"trace": "trace",
|
|
290
295
|
"logs": "logs",
|
|
291
296
|
"mcpStats": "mcp_stats",
|
|
292
297
|
};
|
|
298
|
+
// --- contract revision (scripts/emit-contract-revision.mjs) ---
|
|
299
|
+
/** Revision of the API contract these types were emitted from; compare against HealthReport.contract_revision. */
|
|
300
|
+
export const CONTRACT_REVISION = "sha256:9ba787d0bd3269a9";
|
package/models/health.tsp
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import "../common/types.tsp";
|
|
2
|
+
|
|
3
|
+
using Qyl.Api.Contracts.Common;
|
|
4
|
+
|
|
1
5
|
namespace Qyl.Api.Contracts.Health;
|
|
2
6
|
|
|
3
7
|
@doc("Health state reported by a qyl-managed process.")
|
|
@@ -21,4 +25,12 @@ model HealthReport {
|
|
|
21
25
|
@encodedName("application/json", "total_duration_ms")
|
|
22
26
|
totalDurationMs: float64;
|
|
23
27
|
entries: Record<HealthCheckEntry>;
|
|
28
|
+
|
|
29
|
+
// The meta surface of the contract loop: first-party clients compare this to
|
|
30
|
+
// the revision baked into their own generated artifacts and refuse to run on
|
|
31
|
+
// a mismatch, so a redeployed collector cannot silently serve a contract its
|
|
32
|
+
// clients were not generated from.
|
|
33
|
+
@doc("Revision of the API contract this process serves, for the client-side startup handshake.")
|
|
34
|
+
@encodedName("application/json", "contract_revision")
|
|
35
|
+
contractRevision: ContractRevision;
|
|
24
36
|
}
|
package/models/mcp-tools.tsp
CHANGED
|
@@ -117,6 +117,76 @@ model SearchLogsOutput {
|
|
|
117
117
|
mode: McpDataMode;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
@doc("Outcome of one CI phase span, projected from its OpenTelemetry span status.")
|
|
121
|
+
enum CiPhaseStatus {
|
|
122
|
+
ok: "ok",
|
|
123
|
+
error: "error",
|
|
124
|
+
unset: "unset",
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@doc("Input for ci_log.")
|
|
128
|
+
model CiLogInput {
|
|
129
|
+
@doc("Session id of one CI run for a per-leg phase breakdown; omit to list recent runs.")
|
|
130
|
+
@encodedName("application/json", "run_id")
|
|
131
|
+
runId?: SessionId;
|
|
132
|
+
|
|
133
|
+
@doc("Maximum CI runs to list.")
|
|
134
|
+
@minValue(1)
|
|
135
|
+
@maxValue(50)
|
|
136
|
+
limit?: int32 = 10;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@doc("One CI run, summarized from the session its telemetry is grouped under.")
|
|
140
|
+
model CiRunSummary {
|
|
141
|
+
@encodedName("application/json", "run_id")
|
|
142
|
+
runId: SessionId;
|
|
143
|
+
|
|
144
|
+
state: SessionState;
|
|
145
|
+
|
|
146
|
+
@encodedName("application/json", "start_time")
|
|
147
|
+
startTime: utcDateTime;
|
|
148
|
+
|
|
149
|
+
@encodedName("application/json", "duration_ms")
|
|
150
|
+
durationMs?: DurationMs;
|
|
151
|
+
|
|
152
|
+
@doc("Spans in the run that ended with an error status.")
|
|
153
|
+
@encodedName("application/json", "error_count")
|
|
154
|
+
@minValue(0)
|
|
155
|
+
errorCount: int32;
|
|
156
|
+
|
|
157
|
+
@doc("Service names observed in the run, at least one of which is CI-emitted.")
|
|
158
|
+
services: string[];
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@doc("One phase span of a CI run, attributed to the leg that executed it.")
|
|
162
|
+
model CiPhase {
|
|
163
|
+
@doc("Value of the span's ci.leg attribute, falling back to its service name.")
|
|
164
|
+
leg: string;
|
|
165
|
+
|
|
166
|
+
@doc("Span name, which the CI emitter convention sets to the phase name.")
|
|
167
|
+
phase: string;
|
|
168
|
+
|
|
169
|
+
status: CiPhaseStatus;
|
|
170
|
+
|
|
171
|
+
@encodedName("application/json", "duration_ms")
|
|
172
|
+
durationMs: DurationMs;
|
|
173
|
+
|
|
174
|
+
@doc("Span status message, present on a failed phase.")
|
|
175
|
+
message?: string;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@doc("Structured output for ci_log: recent runs, or one run's phases.")
|
|
179
|
+
model CiLogOutput {
|
|
180
|
+
runs?: CiRunSummary[];
|
|
181
|
+
|
|
182
|
+
@encodedName("application/json", "run_id")
|
|
183
|
+
runId?: SessionId;
|
|
184
|
+
|
|
185
|
+
phases?: CiPhase[];
|
|
186
|
+
|
|
187
|
+
mode: McpDataMode;
|
|
188
|
+
}
|
|
189
|
+
|
|
120
190
|
@doc("Input for the app-only fetch_telemetry tool.")
|
|
121
191
|
model FetchTelemetryInput {
|
|
122
192
|
view: FetchTelemetryView;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancplua/qyl-api-schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "TypeSpec source of truth for qyl API contracts. Emits OpenAPI, JSON Schema, Qyl.Api.Contracts DTOs, and TypeScript contract types; not an OpenTelemetry package, storage schema, or server implementation.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -85,9 +85,10 @@
|
|
|
85
85
|
"build:emitters": "tsc -p emitters/csharp && tsc -p emitters/ts-types && tsc -p emitters/qyl-lint",
|
|
86
86
|
"build:ts-runtime": "tsc -p tsconfig.contracts.json",
|
|
87
87
|
"build:json-schema": "node scripts/openapi-to-json-schema.mjs",
|
|
88
|
+
"emit:contract-revision": "node scripts/emit-contract-revision.mjs",
|
|
88
89
|
"prepare": "npm run build:emitters",
|
|
89
90
|
"prepack": "npm run compile",
|
|
90
|
-
"compile": "npm run clean:generated && npm run build:emitters && tsp compile main.tsp && npm run build:json-schema && npm run build:ts-runtime",
|
|
91
|
+
"compile": "npm run clean:generated && npm run build:emitters && tsp compile main.tsp && npm run emit:contract-revision && npm run build:json-schema && npm run build:ts-runtime",
|
|
91
92
|
"watch": "tsp compile main.tsp --watch",
|
|
92
93
|
"format": "tsp format **/*.tsp",
|
|
93
94
|
"lint": "npm run build:emitters && tsp compile main.tsp --no-emit --warn-as-error",
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
},
|
|
99
100
|
"peerDependencies": {
|
|
100
101
|
"@typespec/compiler": "^1.13.0 || >=1.13.0-dev.0",
|
|
101
|
-
"@typespec/events": "^0.83.0",
|
|
102
|
+
"@typespec/events": "^0.83.0 || ^0.84.0",
|
|
102
103
|
"@typespec/http": "^1.13.0",
|
|
103
104
|
"@typespec/openapi": "^1.13.0",
|
|
104
105
|
"@typespec/openapi3": "^1.13.0",
|