mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
371 lines
14 KiB
Text
371 lines
14 KiB
Text
{ resource =
|
|
Some(
|
|
{ attributes =
|
|
[{ key = "service.namespace";
|
|
value = Some(String_value("ocaml-otel.test"));
|
|
};
|
|
{ key = "service.name"; value = Some(String_value("emit_logs")); };
|
|
{ key = "src"; value = Some(String_value("application")); };
|
|
{ key = "my_reporter_attr"; value = Some(String_value("foo")); }
|
|
];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
entity_refs = [];
|
|
});
|
|
scope_logs =
|
|
[{ scope =
|
|
Some(
|
|
{ name = "ocaml-otel";
|
|
version = "%%VERSION_NUM%%";
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
});
|
|
log_records =
|
|
[{ time_unix_nano = 0;
|
|
observed_time_unix_nano = 0;
|
|
severity_number = Severity_number_debug;
|
|
severity_text = "debug";
|
|
body = Some(String_value("emit_logs: starting"));
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
flags = 0 (* absent *);
|
|
trace_id = <bytes len=0> (* absent *);
|
|
span_id = <bytes len=0> (* absent *);
|
|
event_name = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
{ resource =
|
|
Some(
|
|
{ attributes =
|
|
[{ key = "service.namespace";
|
|
value = Some(String_value("ocaml-otel.test"));
|
|
};
|
|
{ key = "service.name"; value = Some(String_value("emit_logs")); };
|
|
{ key = "src"; value = Some(String_value("application")); };
|
|
{ key = "my_reporter_attr"; value = Some(String_value("foo")); }
|
|
];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
entity_refs = [];
|
|
});
|
|
scope_logs =
|
|
[{ scope =
|
|
Some(
|
|
{ name = "ocaml-otel";
|
|
version = "%%VERSION_NUM%%";
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
});
|
|
log_records =
|
|
[{ time_unix_nano = 0;
|
|
observed_time_unix_nano = 0;
|
|
severity_number = Severity_number_info2;
|
|
severity_text = "info";
|
|
body = Some(String_value("emit_logs: info log"));
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
flags = 0 (* absent *);
|
|
trace_id = <bytes len=0> (* absent *);
|
|
span_id = <bytes len=0> (* absent *);
|
|
event_name = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
{ resource =
|
|
Some(
|
|
{ attributes =
|
|
[{ key = "service.namespace";
|
|
value = Some(String_value("ocaml-otel.test"));
|
|
};
|
|
{ key = "service.name";
|
|
value = Some(String_value("emit_logs"));
|
|
};
|
|
{ key = "src"; value = Some(String_value("application")); };
|
|
{ key = "my_reporter_attr"; value = Some(String_value("foo")); }
|
|
];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
entity_refs = [];
|
|
});
|
|
scope_logs =
|
|
[{ scope =
|
|
Some(
|
|
{ name = "ocaml-otel";
|
|
version = "%%VERSION_NUM%%";
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
});
|
|
log_records =
|
|
[{ time_unix_nano = 0;
|
|
observed_time_unix_nano = 0;
|
|
severity_number = Severity_number_warn;
|
|
severity_text = "warning";
|
|
body = Some(String_value("emit_logs: warn log"));
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
flags = 0 (* absent *);
|
|
trace_id = <bytes len=0> (* absent *);
|
|
span_id = <bytes len=0> (* absent *);
|
|
event_name = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
{ resource =
|
|
Some(
|
|
{ attributes =
|
|
[{ key = "service.namespace";
|
|
value = Some(String_value("ocaml-otel.test"));
|
|
};
|
|
{ key = "service.name";
|
|
value = Some(String_value("emit_logs"));
|
|
};
|
|
{ key = "src"; value = Some(String_value("application")); };
|
|
{ key = "my_reporter_attr";
|
|
value = Some(String_value("foo"));
|
|
}
|
|
];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
entity_refs = [];
|
|
});
|
|
scope_logs =
|
|
[{ scope =
|
|
Some(
|
|
{ name = "ocaml-otel";
|
|
version = "%%VERSION_NUM%%";
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
});
|
|
log_records =
|
|
[{ time_unix_nano = 0;
|
|
observed_time_unix_nano = 0;
|
|
severity_number = Severity_number_error;
|
|
severity_text = "error";
|
|
body = Some(String_value("emit_logs: error log"));
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
flags = 0 (* absent *);
|
|
trace_id = <bytes len=0> (* absent *);
|
|
span_id = <bytes len=0> (* absent *);
|
|
event_name = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
{ resource =
|
|
Some(
|
|
{ attributes =
|
|
[{ key = "service.namespace";
|
|
value = Some(String_value("ocaml-otel.test"));
|
|
};
|
|
{ key = "service.name";
|
|
value = Some(String_value("emit_logs"));
|
|
};
|
|
{ key = "src"; value = Some(String_value("application")); };
|
|
{ key = "my_reporter_attr";
|
|
value = Some(String_value("foo"));
|
|
}
|
|
];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
entity_refs = [];
|
|
});
|
|
scope_logs =
|
|
[{ scope =
|
|
Some(
|
|
{ name = "ocaml-otel";
|
|
version = "%%VERSION_NUM%%";
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
});
|
|
log_records =
|
|
[{ time_unix_nano = 0;
|
|
observed_time_unix_nano = 0;
|
|
severity_number = Severity_number_info;
|
|
severity_text = "app";
|
|
body = Some(String_value("emit_logs: app log"));
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
flags = 0 (* absent *);
|
|
trace_id = <bytes len=0> (* absent *);
|
|
span_id = <bytes len=0> (* absent *);
|
|
event_name = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
{ resource =
|
|
Some(
|
|
{ attributes =
|
|
[{ key = "service.namespace";
|
|
value = Some(String_value("ocaml-otel.test"));
|
|
};
|
|
{ key = "service.name";
|
|
value = Some(String_value("emit_logs"));
|
|
};
|
|
{ key = "src";
|
|
value = Some(String_value("application"));
|
|
};
|
|
{ key = "string_list_attr";
|
|
value = Some(String_value(""));
|
|
};
|
|
{ key = "bool_attr"; value = Some(String_value("")); };
|
|
{ key = "float_attr"; value = Some(String_value("")); };
|
|
{ key = "int_attr"; value = Some(String_value("")); };
|
|
{ key = "string_attr"; value = Some(String_value("")); };
|
|
{ key = "my_reporter_attr";
|
|
value = Some(String_value("foo"));
|
|
}
|
|
];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
entity_refs = [];
|
|
});
|
|
scope_logs =
|
|
[{ scope =
|
|
Some(
|
|
{ name = "ocaml-otel";
|
|
version = "%%VERSION_NUM%%";
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
});
|
|
log_records =
|
|
[{ time_unix_nano = 0;
|
|
observed_time_unix_nano = 0;
|
|
severity_number = Severity_number_info2;
|
|
severity_text = "info";
|
|
body =
|
|
Some(
|
|
String_value(
|
|
"emit_logs: this log is emitted with varied tags from a span"));
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
flags = 0 (* absent *);
|
|
trace_id = <bytes len=16>;
|
|
span_id = <bytes len=8>;
|
|
event_name = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
{ resource =
|
|
Some(
|
|
{ attributes =
|
|
[{ key = "service.namespace";
|
|
value = Some(String_value("ocaml-otel.test"));
|
|
};
|
|
{ key = "service.name";
|
|
value = Some(String_value("emit_logs"));
|
|
};
|
|
{ key = "src";
|
|
value = Some(String_value("application"));
|
|
};
|
|
{ key = "string_list_attr";
|
|
value = Some(String_value(""));
|
|
};
|
|
{ key = "bool_attr"; value = Some(String_value("")); };
|
|
{ key = "float_attr"; value = Some(String_value("")); };
|
|
{ key = "int_attr"; value = Some(String_value("")); };
|
|
{ key = "string_attr"; value = Some(String_value("")); };
|
|
{ key = "my_reporter_attr";
|
|
value = Some(String_value("foo"));
|
|
}
|
|
];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
entity_refs = [];
|
|
});
|
|
scope_logs =
|
|
[{ scope =
|
|
Some(
|
|
{ name = "ocaml-otel";
|
|
version = "%%VERSION_NUM%%";
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
});
|
|
log_records =
|
|
[{ time_unix_nano = 0;
|
|
observed_time_unix_nano = 0;
|
|
severity_number = Severity_number_info2;
|
|
severity_text = "info";
|
|
body =
|
|
Some(
|
|
String_value(
|
|
"emit_logs: this log will be emitted with varied tags"));
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
flags = 0 (* absent *);
|
|
trace_id = <bytes len=0> (* absent *);
|
|
span_id = <bytes len=0> (* absent *);
|
|
event_name = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
{ resource =
|
|
Some(
|
|
{ attributes =
|
|
[{ key = "service.namespace";
|
|
value = Some(String_value("ocaml-otel.test"));
|
|
};
|
|
{ key = "service.name";
|
|
value = Some(String_value("emit_logs_fmt"));
|
|
};
|
|
{ key = "src";
|
|
value = Some(String_value("application"));
|
|
};
|
|
{ key = "my_fmt_attr";
|
|
value = Some(String_value("bar"));
|
|
}
|
|
];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
entity_refs = [];
|
|
});
|
|
scope_logs =
|
|
[{ scope =
|
|
Some(
|
|
{ name = "ocaml-otel";
|
|
version = "%%VERSION_NUM%%";
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
});
|
|
log_records =
|
|
[{ time_unix_nano = 0;
|
|
observed_time_unix_nano = 0;
|
|
severity_number = Severity_number_info2;
|
|
severity_text = "info";
|
|
body =
|
|
Some(
|
|
String_value(
|
|
"emit_logs: this log will be emitted from otel and fmt reporter"));
|
|
attributes = [];
|
|
dropped_attributes_count = 0 (* absent *);
|
|
flags = 0 (* absent *);
|
|
trace_id = <bytes len=0> (* absent *);
|
|
span_id = <bytes len=0> (* absent *);
|
|
event_name = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|
|
];
|
|
schema_url = "" (* absent *);
|
|
}
|