opentelemetry-instrumentation
Version, currently 0.2.322 versions
- 0.5.5latestDec 4, 2024
- 0.5.4not indexedMay 14, 2026
- 0.5.3not indexedMay 14, 2026
- 0.5.2not indexedMay 14, 2026
- 0.5.1not indexedMay 14, 2026
- 0.5.0not indexedMay 14, 2026
- 0.3.5not indexedMay 14, 2026
- 0.3.4not indexedMay 14, 2026
- 0.3.3not indexedMay 14, 2026
- 0.3.2not indexedMay 14, 2026
- 0.3.1not indexedMay 14, 2026
- 0.3.0not indexedMay 14, 2026
- 0.2.9not indexedMay 14, 2026
- 0.2.8not indexedMay 14, 2026
- 0.2.7not indexedMay 14, 2026
- 0.2.6not indexedMay 14, 2026
- 0.2.5not indexedMay 14, 2026
- 0.2.4not indexedMay 14, 2026
- 0.2.3not indexedMay 14, 2026
- 0.2.2not indexedMay 14, 2026
- 0.2.1not indexedMay 14, 2026
- 0.2.0not indexedMay 14, 2026
github.com/wyhaines/opentelemetry-instrumentation.cr
Bundled integrations for opentelemetry-api.cr (https://github.com/wyhaines/opentelemetry-api.cr).
Nothing has been indexed for 0.2.3 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-instrumentation:
github: wyhaines/opentelemetry-instrumentation.cr
version: ~> 0.2.3Then run:
shards installshard.yml
No shard.yml has been indexed for 0.2.3. 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-instrumentation.cr/releases)

# opentelemetry-instrumentation
This package provides both the base functionality needed to build instrumentation for arbitrary classes/libraries, but also ready-made instrumentation for commonly used Crystal libraries.
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
opentelemetry-instrumentation:
github: wyhaines/opentelemetry-instrumentation.cr
```
2. Run `shards install`
## Usage
```crystal
require "opentelemetry-instrumentation.cr"
```
Requiring the top level library will attempt to instrument, via a `macro finished` block, every component within your project for which there exists instrumentation. Each instrumentation package attempts to determine whether it is safe to install before doing so, by validating that required components are installed, and that their versions are compatible.
The reason for running the autoinstrumentation within a `finished` block is to ensure that all other classes have been loaded prior to loading the instrumentation. However, the structure of some softare and frameworks (such as [https://luckyframework.org/](https://luckyframework.org/)) prevent this from working properly. If it appears that instrumentation has not been installed, you can check what instruments have been installed by examining the data returned from `OpenTelemetry::Instrumentation::Registry.instruments`. It may look like this:
```crystal
[OpenTelemetry::Instrumentation::CrystalDB,
OpenTelemetry::Instrumentation::CrystalHttpServer,
OpenTelemetry::Instrumentation::CrystalLog]
```
If the array is empty, then no instrumentation was installed. You can require instrumentation manually by requiring the relevant file. For instance, to manually install the DB instrumentation (assuming that DB has been previously required):
```crystal
require "opentelemetry-instrumentation/src/instrumentation/crystal/db"
```
## Documentation
The generated docs can all be found here:
[https://wyhaines.github.io/opentelemetry-instrumentation.cr/](https://wyhaines.github.io/opentelemetry-instrumentation.cr/)
## Contributing
1. Fork it (<https://github.com/wyhaines/opentelemetry-instrumentation.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


Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.3- Tagged
- May 14, 2026
- Commit
7359a23481bc- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/wyhaines/opentelemetry-instrumentation.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 22