opentelemetry-api
Version, currently 0.1.620 versions
- 0.5.1latestOct 7, 2024
- 0.5.0not indexedJan 7, 2025
- 0.3.4not indexedJan 7, 2025
- 0.3.3not indexedJan 7, 2025
- 0.3.2not indexedJan 7, 2025
- 0.3.1not indexedJan 7, 2025
- 0.3.0not indexedJan 7, 2025
- 0.2.5not indexedJan 7, 2025
- 0.2.4not indexedJan 7, 2025
- 0.2.3not indexedJan 7, 2025
- 0.2.2not indexedJan 7, 2025
- 0.2.1not indexedJan 7, 2025
- 0.2.0not indexedJan 7, 2025
- 0.1.6not indexedJan 7, 2025
- 0.1.5not indexedJan 7, 2025
- 0.1.4not indexedJan 7, 2025
- 0.1.3not indexedJan 7, 2025
- 0.1.2not indexedJan 7, 2025
- 0.1.1not indexedJan 7, 2025
- 0.1.0not indexedJan 7, 2025
github.com/wyhaines/opentelemetry-api.cr
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.
Nothing has been indexed for 0.1.6 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
opentelemetry-api:
github: wyhaines/opentelemetry-api.cr
version: ~> 0.1.6Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.6. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.

[](https://github.com/wyhaines/opentelemetry-api.cr/releases)

# 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/](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](https://github.com/wyhaines/opentelemetry-instrumentation.cr/) or the [SDK].
If you do have reason to use this shard directly, however:
1. Add the dependency to your `shard.yml`:
```yaml
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:
```crystal
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):
```crystal
require "opentelemetry-api/src/interfaces"
```
## Development
If you want to help with development, [fork](https://github.com/wyhaines/opentelemetry-api.cr/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](https://github.com/wyhaines/opentelemetry-api.cr/discussions/new) or [create an issue](https://github.com/wyhaines/opentelemetry-api.cr/issues/new/choose).
## 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
- [Kirk Haines](https://github.com/wyhaines) - creator and maintainer


[Contributing]: #contributing
[SDK]: https://github.com/wyhaines/opentelemetry-sdk.cr
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.6- Tagged
- Jan 7, 2025
- Commit
753649e7a9e5- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/wyhaines/opentelemetry-api.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 20