Skip to content

open-telemetry/opentelemetry-weaver-examples

OpenTelemetry Weaver Examples

This repository contains a set of fully functional, working examples of using OpenTelemetry Weaver.

Prerequisites

Install weaver by following the instructions from the release that matches your OS. Be sure to have weaver on your path for the commands in the examples to work.

Using Weaver in CI/CD

This repository includes GitHub Actions workflows that demonstrate how to use Weaver in CI/CD pipelines:

These workflows use the setup-weaver action to install Weaver. You can copy these patterns to your own repositories.

Examples

  • Basic

    • This example demonstrates some basic usage of OpenTelemetry Weaver.
    • It defines a simple model dependent on the OpenTelemetry Semantic Conventions.
    • It shows how to generate docs and code, check and resolve the model, and use live-check with a sample application.
  • Live-check Custom Advisor

    • This example shows how to create and use a custom advisor with OpenTelemetry Weaver Live-check.
    • It demonstrates implementing custom validation logic using Rego policies.
    • It shows how to validate telemetry data against custom annotations in your semantic convention model.
  • Emit OTLP Logs

    • This example demonstrates how to set up the OpenTelemetry Collector to export to a running weaver registry live-check instance for continuous telemetry validation.
    • It shows how to prevent infinite loops when Weaver sends Findings back to the collector.
    • It illustrates how to integrate Weaver Findings into existing observability pipelines.

Contributing

See CONTRIBUTING.md.

Maintainers

For more information about the maintainer role, see the community repository.

Approvers

For more information about the approver role, see the community repository.

About

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7