Commit 5ddb8e7
authored
[logs-sdk] Remove LogData and extend SDK LogRecord to have instrumentation scope (#4676)
* removing LogData and extending SDK LogRecord to have instrumentation scope
* Fix tests
* Keep LogData to avoid errors
* Removing LogData
* Update
* Update test
* Update
* Update event test
* Update
* Address comments
* Update
* Add ReadableLogRecord and ReadWriteLogRecord
* Update
* Update tests
* Add dropped_attributes in ReadableLogRecord, this is used to encode logs in OTLP
* Convert to ReadWriteLogRecord before exporting
* Update EventLogger
* Update
* Fix events tests
* Update
* Update event test
* Update after merge
* Update otlp common test
* Update
* Address comments
* Update
* Update
* Update
* Update
* ruff
* Addressing comments
* Final cleanup1 parent 20dedf5 commit 5ddb8e7
File tree
22 files changed
+715
-740
lines changed- exporter
- opentelemetry-exporter-otlp-proto-common
- src/opentelemetry/exporter/otlp/proto/common/_internal/_log_encoder
- tests
- opentelemetry-exporter-otlp-proto-grpc
- src/opentelemetry/exporter/otlp/proto/grpc
- _log_exporter
- tests/logs
- opentelemetry-exporter-otlp-proto-http
- src/opentelemetry/exporter/otlp/proto/http/_log_exporter
- tests
- opentelemetry-sdk
- src/opentelemetry/sdk
- _events
- _logs
- _internal
- export
- util
- tests
- events
- logs
22 files changed
+715
-740
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
24 | 69 | | |
25 | 70 | | |
26 | 71 | | |
| |||
Lines changed: 25 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
44 | | - | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
49 | | - | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | | - | |
| 53 | + | |
52 | 54 | | |
53 | | - | |
54 | | - | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
58 | 60 | | |
59 | | - | |
| 61 | + | |
60 | 62 | | |
61 | | - | |
| 63 | + | |
62 | 64 | | |
63 | | - | |
| 65 | + | |
64 | 66 | | |
65 | | - | |
| 67 | + | |
66 | 68 | | |
67 | | - | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
| |||
0 commit comments