@ohos-ports/datadog-libdatadog
v0.21.0-beta.0
Published
Native HarmonyOS bindings for libdatadog (napi-rs)
Keywords
Readme
@datadog/libdatadog
Internal package: This package is published solely for use by
dd-trace. It is not a supported standalone API and must not be used directly by applications or other libraries. Its API, behavior, and distribution may change without notice.
WASM Node.js bindings for libdatadog. The bindings for Zstandard compression,
DDSketch, and the agentless data pipeline are maintained in the root
crates/libdatadog-wasm workspace crate. Optional libdatadog functionality is
published separately as @datadog/libdatadog-extras.
Remote configuration is available from @datadog/libdatadog/remote-config.
It uses a dedicated wasm-bindgen artifact that loads only with this entry point.
The package accepts Datadog v0.4 MessagePack payloads and exports them to an
agentless intake. sendV04() reports completion through a callback and sends
delivery failures to the supplied logger. It does not return a promise.
createAgentlessExporter(options, { agent }) accepts an optional borrowed
Node.js HTTP agent. The caller owns the agent and its lifetime.
The package uses a wasm-bindgen backend with the WebAssembly bytes embedded in
JavaScript. The canonical inlined output is published as the regular
@datadog/libdatadog-wasm dependency from the wasm workspace. The WASM
package also contains the separate remote configuration artifact. No raw
.wasm asset or native extension is published.
