Skip to content

Commit c710537

Browse files
committed
Bump minor version.
1 parent dc1b7dd commit c710537

File tree

5 files changed

+65
-6
lines changed

5 files changed

+65
-6
lines changed

context/getting-started.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Getting Started
2+
3+
This guide explains how to get started with `traces-backend-open_telemetry` to send application traces to OpenTelemetry.
4+
5+
## Installation
6+
7+
Add the gem to your project:
8+
9+
```bash
10+
$ bundle add traces-backend-open_telemetry
11+
```
12+
13+
## Usage
14+
15+
You will need to configure OpenTelemetry appropriately, e.g.:
16+
17+
```bash
18+
$ bundle add opentelemetry-exporter-otlp
19+
```
20+
21+
Then, you can emit traces:
22+
23+
```ruby
24+
require "opentelemetry/sdk"
25+
26+
# You should do this in your environment configuration.
27+
ENV["TRACES_BACKEND"] ||= "traces/backend/open_telemetry"
28+
29+
require "traces"
30+
31+
OpenTelemetry::SDK.configure
32+
33+
Traces.trace("main") do
34+
puts "Hello World"
35+
end
36+
```

context/index.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Automatically generated context index for Utopia::Project guides.
2+
# Do not edit then files in this directory directly, instead edit the guides and then run `bake utopia:project:agent:context:update`.
3+
---
4+
description: A traces backend for Open Telemetry.
5+
metadata:
6+
source_code_uri: https://github.com/socketry/traces-backend-open_telemetry.git
7+
files:
8+
- path: getting-started.md
9+
title: Getting Started
10+
description: This guide explains how to get started with `traces-backend-open_telemetry`
11+
to send application traces to OpenTelemetry.

lib/traces/backend/open_telemetry/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
module Traces
77
module Backend
88
module OpenTelemetry
9-
VERSION = "0.2.0"
9+
VERSION = "0.3.0"
1010
end
1111
end
1212
end

readme.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,25 @@ $ bundle add traces-backend-open_telemetry
1212

1313
## Usage
1414

15-
``` shell
16-
$ TRACES_BACKEND=traces/backend/open_telemetry ./my_script.rb
17-
```
15+
Please see the [project documentation](https://github.com/socketry/traces-backend-open_telemetry) for more details.
16+
17+
- [Getting Started](https://github.com/socketry/traces-backend-open_telemetryguides/getting-started/index) - This guide explains how to get started with `traces-backend-open_telemetry` to send application traces to OpenTelemetry.
1818

1919
## Releases
2020

21-
There are no documented releases.
21+
Please see the [project releases](https://github.com/socketry/traces-backend-open_telemetryreleases/index) for all releases.
22+
23+
### v0.3.0
24+
25+
- [New Context Propagation Interface](https://github.com/socketry/traces-backend-open_telemetryreleases/index#new-context-propagation-interface)
26+
27+
### v0.2.0
28+
29+
- Prefer to use `Tracer#in_span`.
30+
31+
### v0.1.0
32+
33+
- Complete implementation of traces backend for OpenTelemetry.
2234

2335
## Contributing
2436

releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Releases
22

3-
## Unreleased
3+
## v0.3.0
44

55
### New Context Propagation Interface
66

0 commit comments

Comments
 (0)