-
-
Notifications
You must be signed in to change notification settings - Fork 389
Expand file tree
/
Copy pathotlp_python_log.json
More file actions
41 lines (41 loc) · 1.49 KB
/
Copy pathotlp_python_log.json
File metadata and controls
41 lines (41 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"otlp_python_log": {
"title": "Open Telemetry Python",
"description": "Format for Open Telemetry services in python",
"regex": {
"std": {
"pattern": "(?<timestamp>\\d{4}-\\d{2}-\\d{2}\\s\\d{2}:\\d{2}:\\d{2}[,.]\\d{3,6})\\s(?<level>\\w+)\\s\\[(?<logger>[^\\]]+)\\]\\s\\[(?<src_file>[^:]+):(?<src_line>\\d+)\\](?:\\s\\[(?<context>[^]]+)\\])?\\s-\\s+(?<body>.*)"
}
},
"src-file-field": "src_file",
"src-line-field": "src_line",
"value": {
"context": {
"kind": "string"
},
"level": {
"kind": "string"
},
"logger": {
"kind": "string",
"identifier": true
},
"src_file": {
"kind": "string",
"identifier": true
},
"src_line": {
"kind": "string"
},
"timestamp": {
"kind": "string"
}
},
"sample": [
{
"line": "2025-04-24 22:09:15,968 INFO [main] [recommendation_server.py:47] [trace_id=f63bcd6b2d5d4f23e5af1da51527c682 span_id=e7849fe8f2eabecd resource.service.name=recommendation trace_sampled=True] - Receive ListRecommendations for product ids:['6E92ZMYYFZ', 'L9ECAV7KIM', '2ZYFJ3GM2N', 'HQTGWGPNH4', 'OLJCESPC7Z']"
}
]
}
}