GithubHelp home page GithubHelp logo

isabella232 / swift-distributed-tracing-baggage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apple/swift-service-context

0.0 0.0 0.0 214 KB

Minimal context propagation container with Logging

Home Page: https://github.com/apple/swift-distributed-tracing

License: Apache License 2.0

Swift 58.13% Ruby 18.76% Shell 20.46% Dockerfile 2.65%

swift-distributed-tracing-baggage's Introduction

🧳 Distributed Tracing: Baggage

Swift 5.2 Swift 5.3 Swift 5.4 Swift 5.5

⚠️ Automatic propagation through task-locals only supported in Swift >= 5.5

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.

See https://github.com/apple/swift-distributed-tracing for actual instrument types and implementations which can be used to deploy various cross-cutting instruments all reusing the same baggage type. More information can be found in the SSWG meeting notes.

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(
    url: "https://github.com/apple/swift-distributed-tracing-baggage.git",
    from: "0.2.0"
  )
]

and depend on the module in your target:

targets: [
    .target(
        name: "MyAwesomeApp",
        dependencies: [
            .product(
              name: "InstrumentationBaggage", 
              package: "swift-distributed-tracing-baggage"
            ),
        ]
    ),
    // ... 
]

Documentation

Please refer to in-depth discussion and documentation in the Swift Distributed Tracing repository.

Contributing

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

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

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

swift-distributed-tracing-baggage's People

Contributors

0xleif avatar ktoso avatar masters3d avatar moritzsternemann avatar slashmo avatar tomerd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.