Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libdd-data-pipeline-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ libdd-data-pipeline = { path = "../libdd-data-pipeline" }
libdd-shared-runtime = { version = "1.0.0", path = "../libdd-shared-runtime" }
libdd-common-ffi = { path = "../libdd-common-ffi", default-features = false }
libdd-tinybytes = { path = "../libdd-tinybytes" }
libdd-trace-utils = { path = "../libdd-trace-utils" }
tracing = { version = "0.1", default-features = false }
9 changes: 7 additions & 2 deletions libdd-data-pipeline-ffi/cbindgen.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ include_guard = "DDOG_DATA_PIPELINE_H"
includes = ["common.h"]
after_includes = """
typedef struct ddog_TraceExporter ddog_TraceExporter;
typedef struct ddog_TracerSpan ddog_TracerSpan;
typedef struct ddog_TracerTraceChunks ddog_TracerTraceChunks;
"""

[export]
prefix = "ddog_"
renaming_overrides_prefixing = true
exclude = ["TraceExporter"]
exclude = ["TraceExporter", "TracerSpan", "TracerTraceChunks"]

[export.rename]
"ByteSlice" = "ddog_ByteSlice"
Expand All @@ -27,6 +29,9 @@ exclude = ["TraceExporter"]
"ExporterResponse" = "ddog_TraceExporterResponse"
"ExporterErrorCode" = "ddog_TraceExporterErrorCode"
"ExporterError" = "ddog_TraceExporterError"
"TracerSpan" = "ddog_TracerSpan"
"TracerSpanFields" = "ddog_TracerSpanFields"
"TracerTraceChunks" = "ddog_TracerTraceChunks"

[export.mangle]
rename_types = "PascalCase"
Expand All @@ -40,4 +45,4 @@ must_use = "DDOG_CHECK_RETURN"

[parse]
parse_deps = true
include = ["libdd-common", "libdd-common-ffi", "libdd-shared-runtime", "libdd-data-pipeline"]
include = ["libdd-common", "libdd-common-ffi", "libdd-shared-runtime", "libdd-data-pipeline", "libdd-trace-utils"]
1 change: 1 addition & 0 deletions libdd-data-pipeline-ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
mod error;
mod response;
mod trace_exporter;
mod tracer;

#[cfg(all(feature = "catch_panic", panic = "unwind"))]
macro_rules! catch_panic {
Expand Down
2 changes: 1 addition & 1 deletion libdd-data-pipeline-ffi/src/trace_exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use libdd_data_pipeline::trace_exporter::{
TraceExporterInputFormat, TraceExporterOutputFormat,
};

type TraceExporter = GenericTraceExporter<NativeCapabilities>;
pub(crate) type TraceExporter = GenericTraceExporter<NativeCapabilities>;

use libdd_shared_runtime::SharedRuntime;
use std::{ptr::NonNull, sync::Arc, time::Duration};
Expand Down
Loading
Loading