Function nemo_relay_otel_subscriber_create_file_sink
Function nemo_relay_otel_subscriber_create_file_sink
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
#[unsafe(no_mangle)]pub unsafe extern "C" fn nemo_relay_otel_subscriber_create_file_sink(
otel_type: *const c_char,
output_directory: *const c_char,
filename: *const c_char,
format: *const c_char,
mode: *const c_char,
resource_attributes_json: *const c_char,
service_name: *const c_char,
service_namespace: *const c_char,
service_version: *const c_char,
instrumentation_scope: *const c_char,
mark_projection: *const c_char,
mark_exclude_names_json: *const c_char,
attribute_mappings_json: *const c_char,
promote_metadata_prefixes_json: *const c_char,
promote_resource_metadata_prefixes_json: *const c_char,
completed_span_context_ttl_millis: u64,
out: *mut *mut FfiOpenTelemetrySubscriber,
) -> NemoRelayStatus
Creates one typed OpenTelemetry exporter subscriber that writes OTLP to a file.
otel_type must be full, gen_ai, or openinference. output_directory is required. filename may be null to use a default name for the format. format is json_lines (the OpenTelemetry file-exporter specification’s serialization, and the default when null) or proto. mode is overwrite (the default when null) or append.
The projection controls match the endpoint entrypoints: mark_projection is inherit, event, or tool; mark_exclude_names_json, promote_metadata_prefixes_json, and promote_resource_metadata_prefixes_json are JSON arrays of strings; attribute_mappings_json is a JSON array of {"key","alias"} objects; and completed_span_context_ttl_millis must be greater than zero. A null JSON pointer takes the core default.
Safety
Any non-null C strings must be valid and out must be non-null.