-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
113 lines (102 loc) · 3.6 KB
/
Copy pathpyproject.toml
File metadata and controls
113 lines (102 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[project]
name = "glassflow-rius"
dynamic = ["version"]
description = "GlassFlow Rius SDK — OpenTelemetry-native tracing for AI agents and LLM applications."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "GlassFlow", email = "help@glassflow.ai" }]
keywords = [
"opentelemetry",
"otel",
"observability",
"tracing",
"llm",
"agents",
"genai",
"rius",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"opentelemetry-api>=1.24.0",
"opentelemetry-sdk>=1.24.0",
"opentelemetry-exporter-otlp-proto-http>=1.24.0",
]
[project.optional-dependencies]
# Auto-instrumentation extras — one per entry in rius.instrumentation.REGISTRY.
# Floors are the versions the registry smoke test last validated against; no caps
# (these packages break within 0.x either way — CI catches forward breakage).
# Every extra installs the INSTRUMENTATION for a library and never the library
# itself, so the SDK cannot pin or upgrade the versions a user's code runs
# against. The instrumented library is always the user's own dependency; the
# instrumentors declare it under their own `instruments` extra, which we do not
# pull in.
#
# There is deliberately NO `mcp` extra: MCP is instrumented by our own module
# (instrumentation_mcp.py), so an instrumentation-only extra would install
# nothing. It activates whenever the `mcp` package is importable. An extra that
# installed `mcp` would be the one place the SDK added a runtime library to a
# user's environment, which is exactly what the rule above exists to prevent.
openai = ["openinference-instrumentation-openai>=0.1.52"]
anthropic = ["openinference-instrumentation-anthropic>=1.0.6"]
langchain = ["openinference-instrumentation-langchain>=0.1.67"]
llama-index = ["openinference-instrumentation-llama-index>=4.4.3"]
litellm = ["openinference-instrumentation-litellm>=0.1.34"]
instruments = [
"openinference-instrumentation-openai>=0.1.52",
"openinference-instrumentation-anthropic>=1.0.6",
"openinference-instrumentation-langchain>=0.1.67",
"openinference-instrumentation-llama-index>=4.4.3",
"openinference-instrumentation-litellm>=0.1.34",
]
[project.urls]
Homepage = "https://github.com/glassflow/rius-sdk-python"
Repository = "https://github.com/glassflow/rius-sdk-python.git"
Issues = "https://github.com/glassflow/rius-sdk-python/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/rius/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/rius"]
[dependency-groups]
dev = [
"pytest>=8.0.0",
"ruff>=0.6.0",
"mypy>=1.11.0",
# integration tests for bundled auto-instrumentation
"openai>=1.0.0",
"openinference-instrumentation-openai",
"mcp>=1.28.1",
]
[tool.ruff]
line-length = 100
src = ["src", "tests"]
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "TID"]
[tool.ruff.format]
docstring-code-format = true
[tool.pytest.ini_options]
addopts = "-ra"
testpaths = ["tests"]
markers = [
"integration: exercises a real OTLP export over a local HTTP server (slower)",
]
[tool.mypy]
python_version = "3.10"
strict = true
files = ["src"]