GitXplorerGitXplorer
a

swift-distributed-tracing-baggage-core

public
13 stars
11 forks
1 issues

Commits

List of commits on branch main.
Verified
459dc46fac4aab62b97938587e4a1a1922d61696

Update CI (#12)

yyim-lee committed a year ago
Verified
4a938a08e3dbd07cb2fa19bfed1efc16ae017d85

Add CI for Swift 5.8 and update nightly to Ubuntu 22.04 (#11)

yyim-lee committed 2 years ago
Verified
51f4356f510c32e45c9be7c15c36fe98c4871b71

Add .spi.yml for Swift Package Index DocC support (#9)

yyim-lee committed 2 years ago
Verified
83434fb020dc9593d1898125966a7ea53cde4e3a

DocC setup (#8)

yyim-lee committed 2 years ago
Verified
1c4433a7fe52f77416a0ff0873b352f98a914f4a

CI update (#7)

yyim-lee committed 2 years ago
Verified
79f17a16dd2be224faadb4584d782294cc6a8d90

use inclusive language (#5)

kktoso committed 4 years ago

README

The README file for this repository.

🧳 Distributed Tracing Baggage Core

📔 NOTE: It is very unlikely that you want to depend on this package itself.

Most libraries and projects should depend on and use the https://github.com/apple/swift-distributed-tracing-baggage package instead, unless avoiding the SwiftLog dependency is necessary.

Baggage is a minimal (zero-dependency) context propagation container, intended to "carry" baggage items for purposes of cross-cutting tools to be built on top of it.

It is modeled after the concepts explained in W3C Baggage and the in the spirit of Tracing Plane 's "Baggage Context" type, although by itself it does not define a specific serialization format.

Please refer to Swift Distributed Tracing Baggage and Swift Distributed Tracing for usage guides of this type.

Dependency

In order to depend on this library you can use the Swift Package Manager, and add the following dependency to your Package.swift:

dependencies: [
  .package(
    name: "swift-baggage-context-core",
    url: "https://github.com/apple/swift-distributed-tracing-baggage-core.git",
    from: "0.1.0"
  )
]

and depend on the module in your target:

targets: [
    .target(
        name: "MyAwesomeApp",
        dependencies: [
            "CoreBaggage",
        ]
    ),
    // ... 
]

Usage

Please refer to Swift Distributed Tracing Baggage for the intended usage, and detailed guidelines.

Alternatively, please refer to the API documentation of the Baggage type.

Contributing

Please make sure to run the ./scripts/soundness.sh script when contributing, it checks formatting and similar things.

You can make ensure it always is run and passes before you push by installing a pre-push hook with git:

echo './scripts/soundness.sh' > .git/hooks/pre-push