Skip to content

Commit fd0c09f

Browse files
authored
feat(writer): initial implementation (#3209)
1 parent e6a0bac commit fd0c09f

File tree

102 files changed

+19570
-157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+19570
-157
lines changed

.cz.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ version_files = [
6262
"packages/opentelemetry-instrumentation-weaviate/opentelemetry/instrumentation/weaviate/version.py",
6363
"packages/opentelemetry-instrumentation-llamaindex/pyproject.toml:^version",
6464
"packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/version.py",
65+
"packages/opentelemetry-instrumentation-writer/pyproject.toml:^version",
66+
"packages/opentelemetry-instrumentation-writer/opentelemetry/instrumentation/writer/version.py",
6567
"packages/traceloop-sdk/pyproject.toml:^version",
6668
"packages/traceloop-sdk/traceloop/sdk/version.py",
6769
]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ OpenLLMetry can instrument everything that [OpenTelemetry already instruments](h
130130
-[Together AI](https://together.xyz/)
131131
-[Aleph Alpha](https://www.aleph-alpha.com/)
132132
-[Groq](https://groq.com/)
133+
-[WRITER](https://writer.com/)
133134

134135
### Vector DBs
135136

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[flake8]
2+
exclude =
3+
.git,
4+
__pycache__,
5+
build,
6+
dist,
7+
.tox,
8+
venv,
9+
.venv,
10+
.pytest_cache
11+
max-line-length = 120
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12.5
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# OpenTelemetry Writer Instrumentation
2+
3+
<a href="https://pypi.org/project/opentelemetry-instrumentation-writer/">
4+
<img alt="PyPI version" src="https://badge.fury.io/py/opentelemetry-instrumentation-writer.svg">
5+
</a>
6+
7+
This library allows tracing calls to any of Writer's endpoints sent with the official [Writer Python Library](https://github.com/writer/writer-python).
8+
9+
## Installation
10+
11+
```bash
12+
pip install opentelemetry-instrumentation-writer
13+
```
14+
15+
## Example usage
16+
17+
```python
18+
from opentelemetry.instrumentation.writer import WriterInstrumentor
19+
20+
WriterInstrumentor().instrument()
21+
```
22+
23+
## Privacy
24+
25+
**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.
26+
27+
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.
28+
29+
To disable logging, set the `TRACELOOP_TRACE_CONTENT` environment variable to `false`.
30+
31+
```bash
32+
TRACELOOP_TRACE_CONTENT=false
33+
```

0 commit comments

Comments
 (0)