CI / Build Pip package (push) Successful in 4m8s
Instrument HTTP requests and WebSocket connections via Kaya hooks, covering both ASGI and RSGI. Records handler exceptions, WebSocket close codes, optional header capture, exclusions and lifecycle hooks. Add route-template resolution and exception visibility to kaya-core so trace/metric attributes can use low-cardinality routes and failed spans can record escaped exceptions.
59 lines
1.4 KiB
TOML
59 lines
1.4 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0", "setuptools-scm>=8"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "kaya-otel"
|
|
dynamic = ["version"]
|
|
authors = [
|
|
{ name="Walter Oggioni", email="oggioni.walter@gmail.com" },
|
|
]
|
|
description = "OpenTelemetry tracing and metrics for the Kaya lightweight ASGI web framework"
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
license = "MIT"
|
|
classifiers = [
|
|
'Development Status :: 3 - Alpha',
|
|
'Topic :: Utilities',
|
|
'Intended Audience :: System Administrators',
|
|
'Intended Audience :: Developers',
|
|
'Environment :: Console',
|
|
'Programming Language :: Python :: 3',
|
|
]
|
|
|
|
dependencies = [
|
|
"kaya-core",
|
|
"opentelemetry-sdk",
|
|
"opentelemetry-exporter-otlp-proto-http",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"build", "mypy", "ipdb", "twine", "httpx", "httpx-ws", "kaya-rsgi"
|
|
]
|
|
|
|
[project.urls]
|
|
"Homepage" = "https://github.com/woggioni/kaya"
|
|
"Bug Tracker" = "https://github.com/woggioni/kaya/issues"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
namespaces = true
|
|
|
|
[tool.mypy]
|
|
python_version = "3.12"
|
|
disallow_untyped_defs = true
|
|
show_error_codes = true
|
|
no_implicit_optional = true
|
|
warn_return_any = true
|
|
warn_unused_ignores = true
|
|
exclude = ["scripts", "docs", "test"]
|
|
strict = true
|
|
|
|
[tool.setuptools_scm]
|
|
root = "../.."
|
|
version_file = "src/kaya/otel/_version.py"
|
|
|
|
[tool.setuptools_scm.tag]
|
|
prefix = "release/"
|