Skip to content
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
912d93e
Writer instrumentation initial commit
yanomaly Jul 31, 2025
4176386
feat: define base structure of writer instrumentaton
yanomaly Aug 1, 2025
4e27bd8
fix: fixed _instrument/_uninstrument methods implementation
yanomaly Aug 4, 2025
c61f5a9
feat: start working on _wrap/_awrap implementation
yanomaly Aug 5, 2025
1d26d8e
feat: define _wrat/_awrap structure and start subsidiary methods impl…
yanomaly Aug 6, 2025
8d9873f
Events emitter and non-streaming
adeweaver Aug 8, 2025
0b3f3be
Streaming response processor methods
adeweaver Aug 12, 2025
30cac95
Response type and tools call setter
adeweaver Aug 14, 2025
ae7504d
Merge pull request #1 from adeweaver/opentelemetry-instrumentation-wr…
yanomaly Aug 17, 2025
9161655
Merge branch 'main' into opentelemetry-instrumentation-writer
yanomaly Aug 17, 2025
2d858fd
feat: add time_to_first_token and time_to_complete histograms
yanomaly Aug 19, 2025
bb89069
test: tests for chat/completion non-streaming modes
yanomaly Aug 21, 2025
60ec527
fix: fix instrumentation to pass tests
yanomaly Aug 21, 2025
d96f21c
WRITER README addition
adeweaver Aug 21, 2025
202538f
feat: update streaming handler for completions
yanomaly Aug 22, 2025
24b1452
Merge remote-tracking branch 'origin/opentelemetry-instrumentation-wr…
yanomaly Aug 22, 2025
481d3c2
refactof: style fixes
yanomaly Aug 22, 2025
f0b790d
test: tests for streaming chat
yanomaly Aug 22, 2025
6f1e803
test: tests for streaming chat calls with story includes tool calling
yanomaly Aug 22, 2025
1c89a9f
test: tests for chat non-streaming tool call request handling
yanomaly Aug 23, 2025
8e9c4aa
feat: streaming tool call request handling
yanomaly Aug 23, 2025
044479c
test: tests of metrics gathering
yanomaly Aug 25, 2025
7ecae64
feat: writer instrumentation usage example app
yanomaly Aug 25, 2025
9a5fbd8
Merge remote-tracking branch 'origin/main' into opentelemetry-instrum…
yanomaly Aug 25, 2025
057558f
config: update dependencies
yanomaly Aug 25, 2025
fa20869
feat: streaming response multiple choices/tool calls accumulator
yanomaly Aug 26, 2025
0c76206
test: tests for multiple tool call requests
yanomaly Aug 27, 2025
e44199d
Merge remote-tracking branch 'origin/main' into opentelemetry-instrum…
yanomaly Aug 27, 2025
a80c2bf
refactor: implement some CodeRabbit refactoring suggestions
yanomaly Aug 27, 2025
1d47a4b
feat: add conditions and exceptions handling to stream processor
yanomaly Aug 27, 2025
68737b3
refactor: style fixes
yanomaly Aug 27, 2025
1d3ae93
fix: update poetry.lock
yanomaly Aug 27, 2025
a3e8821
fix: update python version limitations and update .lock file with ref…
yanomaly Aug 28, 2025
921cb91
fix: update poetry.lock
yanomaly Aug 28, 2025
5653637
lint: fix linting errors
yanomaly Aug 28, 2025
389efe9
Merge branch 'main' into opentelemetry-instrumentation-writer
nirga Aug 29, 2025
f9d11be
chore: prepare for release
nirga Aug 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ OpenLLMetry can instrument everything that [OpenTelemetry already instruments](h
- ✅ [Together AI](https://together.xyz/)
- ✅ [Aleph Alpha](https://www.aleph-alpha.com/)
- ✅ [Groq](https://groq.com/)
- ✅ [WRITER](https://writer.com/)

### Vector DBs

Expand Down
11 changes: 11 additions & 0 deletions packages/opentelemetry-instrumentation-writer/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[flake8]
exclude =
.git,
__pycache__,
build,
dist,
.tox,
venv,
.venv,
.pytest_cache
max-line-length = 120
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12.5
33 changes: 33 additions & 0 deletions packages/opentelemetry-instrumentation-writer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# OpenTelemetry Writer Instrumentation

<a href="https://pypi.org/project/opentelemetry-instrumentation-writer/">
<img src="https://badge.fury.io/py/opentelemetry-instrumentation-writer.svg">
</a>

This library allows tracing calls to any of Writer's endpoints sent with the official [Writer Python Library](https://github.com/writer/writer-python).

## Installation

```bash
pip install opentelemetry-instrumentation-writer
```

## Example usage

```python
from opentelemetry.instrumentation.writer import WriterInstrumentor

WriterInstrumentor().instrument()
```

## Privacy

**By default, this instrumentation logs prompts, completions, and embeddings to span attributes**. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs.

However, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.

To disable logging, set the `TRACELOOP_TRACE_CONTENT` environment variable to `false`.

```bash
TRACELOOP_TRACE_CONTENT=false
```
Loading