Skip to content

Commit 4986e27

Browse files
authored
Merge pull request #4 from hyparam/feat/normalized-service-telemetry-rows-v2
[codex] Normalize service telemetry rows
2 parents 3c5784c + a60f4af commit 4986e27

9 files changed

Lines changed: 1188 additions & 71 deletions

File tree

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Collectivus
22

3-
Zero-dependency OTLP/HTTP JSON collector that writes to JSONL files.
3+
Zero-dependency OTLP/HTTP collector that writes to JSONL files.
44

55
## Installation
66

@@ -50,9 +50,9 @@ await collector.stop()
5050

5151
## Endpoints
5252

53-
- `POST /v1/traces` - Receive trace data
54-
- `POST /v1/metrics` - Receive metrics data
55-
- `POST /v1/logs` - Receive log data
53+
- `POST /v1/traces` - Receive trace data (`application/json` and `application/x-protobuf`)
54+
- `POST /v1/metrics` - Receive metrics data (`application/json` and `application/x-protobuf`)
55+
- `POST /v1/logs` - Receive log data (`application/json` and `application/x-protobuf`)
5656

5757
## Output
5858

@@ -64,11 +64,19 @@ otel-data/
6464
│ └── YYYY-MM-DD.jsonl
6565
├── metrics/
6666
│ └── YYYY-MM-DD.jsonl
67-
└── logs/
68-
└── YYYY-MM-DD.jsonl
67+
├── logs/
68+
│ └── YYYY-MM-DD.jsonl
69+
├── services/
70+
│ └── <service.name>/
71+
│ ├── traces-YYYY-MM-DD.jsonl
72+
│ ├── metrics-YYYY-MM-DD.jsonl
73+
│ └── logs-YYYY-MM-DD.jsonl
74+
└── logs-by-service/
75+
└── <service.name>/
76+
└── YYYY-MM-DD.jsonl
6977
```
7078

71-
Each line is a JSON object representing the received payload.
79+
Each line in `traces/`, `metrics/`, and `logs/` is the raw received payload. The `services/` tree is the normalized browse view: one JSON row per log record, span, or metric data point, partitioned by `service.name`. `logs-by-service/` is retained as a legacy compatibility mirror for normalized logs.
7280

7381
## Verification
7482

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "collectivus",
33
"version": "1.1.0",
4-
"description": "Zero-dependency OTLP/HTTP JSON collector that writes to JSONL files",
4+
"description": "Zero-dependency OTLP/HTTP collector that writes to JSONL files",
55
"type": "module",
66
"main": "src/index.js",
77
"bin": {

0 commit comments

Comments
 (0)