Skip to content

The core of open telemetry instrumentation is the OpenTelemetry API/SDK. The initial aim of this shard is to implement the OpenTelemetry specification for metrics, traces, and logs.

License

Notifications You must be signed in to change notification settings

wyhaines/opentelemetry-api.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenTelemetry CI GitHub release GitHub commits since latest release (by SemVer)

OpenTelemetry-API

This is an implementation of the OpenTelemetry API. The API layer provides a set of interface definitions, and NO-OP implementations of those interfaces. It is not useful on its own to instrument your code with OpenTelemetry, but rather is intended to be used by the SDK, which provides the functionality behind the API interfaces defined in this repo.

Full Generated Documentation

https://wyhaines.github.io/opentelemetry-api.cr/

Discord

A Discord community for help and discussion with Crystal OpenTelemetry can be found at:

https://discord.gg/WKe9WWJ3HE

Installation

You will not normally directly use this shard. If you want to instrument your code with OpenTelemetry, see the Instrumentation shard or the SDK.

If you do have reason to use this shard directly, however:

  1. Add the dependency to your shard.yml:

    dependencies:
      opentelemetry-api:
        github: wyhaines/opentelemetry-api.cr
  2. Run shards install

Usage

To gain access to all of the API (i.e. NO-OP) implementations of the OTel API interfaces:

require "opentelemetry-api"

This will define a set of classes and structs which implement the OpenTelemetry API interfaces with methods that do nothing.

If you only want access to the API interfaces (which is what the SDK uses):

require "opentelemetry-api/src/interfaces"

Development

If you want to help with development, fork this repo. Do your work in a branch inside your fork, and when it is ready (and has specs), submit a PR. See Contributing below.

If you have a question or find an issue, you can start a discussion or create an issue.

Contributing

  1. Fork it (https://github.com/wyhaines/opentelemetry-api.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

GitHub code size in bytes GitHub issues

About

The core of open telemetry instrumentation is the OpenTelemetry API/SDK. The initial aim of this shard is to implement the OpenTelemetry specification for metrics, traces, and logs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published