Skip to content

Commit aa7698d

Browse files
authored
[user-events log exporter] Fix version and payload type (#188)
1 parent 985cbd5 commit aa7698d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opentelemetry-user-events-logs/src/logs/exporter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl UserEventsExporter {
248248
eb.reset(instrumentation.name().as_ref(), event_tags as u16);
249249
eb.opcode(Opcode::Info);
250250

251-
eb.add_value("__csver__", 0x0400u16, FieldFormat::HexInt, 0);
251+
eb.add_value("__csver__", 1024, FieldFormat::UnsignedInt, 0); // 0x400 in hex
252252

253253
// populate CS PartA
254254
let mut cs_a_count = 0;
@@ -297,7 +297,7 @@ impl UserEventsExporter {
297297
let mut cs_b_bookmark: usize = 0;
298298
let mut cs_b_count = 0;
299299
eb.add_struct_with_bookmark("PartB", 1, 0, &mut cs_b_bookmark);
300-
eb.add_str("_typeName", "Logs", FieldFormat::Default, 0);
300+
eb.add_str("_typeName", "Log", FieldFormat::Default, 0);
301301
cs_b_count += 1;
302302

303303
if log_record.body().is_some() {

0 commit comments

Comments
 (0)