pf_observability_core 0.1.1

Core observability types and traits for the PromptFleet agent ecosystem
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "pf_observability_core"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core observability types and traits for the PromptFleet agent ecosystem"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/promptfleet/promptfleet-agents"
resolver = "2"

[features]
auto-instrumentation = [
    "otel-2025",
    "opentelemetry-semantic-conventions",
]
default = ["structured-logging"]
observability = [
    "otel-2025",
    "structured-logging",
    "prometheus-federation",
]
otel-2025 = [
    "opentelemetry",
    "opentelemetry-semantic-conventions",
]
prometheus-federation = ["prometheus"]
structured-logging = [
    "serde",
    "serde_json",
    "chrono",
    "log",
    "tracing",
    "rand",
]

[lib]
name = "observability_core"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[example]]
name = "basic_metrics_demo"
path = "examples/basic_metrics_demo.rs"

[[example]]
name = "integrated_context_demo"
path = "examples/integrated_context_demo.rs"

[[example]]
name = "raii_scoped_context_demo"
path = "examples/raii_scoped_context_demo.rs"

[[example]]
name = "standard_logging_demo"
path = "examples/standard_logging_demo.rs"

[[example]]
name = "tracing_and_kv_demo"
path = "examples/tracing_and_kv_demo.rs"

[dependencies.chrono]
version = "0.4"
features = ["serde"]
optional = true

[dependencies.foundation_utils]
version = "0.1.0"
package = "pf_foundation_utils"

[dependencies.log]
version = "0.4"
features = ["kv_unstable"]
optional = true

[dependencies.opentelemetry]
version = "0.21"
optional = true

[dependencies.opentelemetry-semantic-conventions]
version = "0.13"
optional = true

[dependencies.prometheus]
version = "0.13"
optional = true

[dependencies.rand]
version = "0.8"
features = [
    "std",
    "std_rng",
]
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.thiserror]
version = "1.0"

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.uuid]
version = "1.0"
features = [
    "v4",
    "serde",
]

[dependencies.web-time]
version = "1.0"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"