comprehend-telemetry 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- comprehend_telemetry-0.1.0/PKG-INFO +55 -0
- comprehend_telemetry-0.1.0/README.md +27 -0
- comprehend_telemetry-0.1.0/pyproject.toml +57 -0
- comprehend_telemetry-0.1.0/setup.cfg +4 -0
- comprehend_telemetry-0.1.0/src/comprehend_telemetry/__init__.py +7 -0
- comprehend_telemetry-0.1.0/src/comprehend_telemetry/span_processor.py +738 -0
- comprehend_telemetry-0.1.0/src/comprehend_telemetry/sql_analyzer.py +450 -0
- comprehend_telemetry-0.1.0/src/comprehend_telemetry/websocket_connection.py +170 -0
- comprehend_telemetry-0.1.0/src/comprehend_telemetry/wire_protocol.py +297 -0
- comprehend_telemetry-0.1.0/src/comprehend_telemetry.egg-info/PKG-INFO +55 -0
- comprehend_telemetry-0.1.0/src/comprehend_telemetry.egg-info/SOURCES.txt +18 -0
- comprehend_telemetry-0.1.0/src/comprehend_telemetry.egg-info/dependency_links.txt +1 -0
- comprehend_telemetry-0.1.0/src/comprehend_telemetry.egg-info/requires.txt +12 -0
- comprehend_telemetry-0.1.0/src/comprehend_telemetry.egg-info/top_level.txt +1 -0
- comprehend_telemetry-0.1.0/tests/test_integration.py +226 -0
- comprehend_telemetry-0.1.0/tests/test_span_processor.py +650 -0
- comprehend_telemetry-0.1.0/tests/test_sql_analyzer.py +568 -0
- comprehend_telemetry-0.1.0/tests/test_tokenizer.py +88 -0
- comprehend_telemetry-0.1.0/tests/test_websocket_connection.py +433 -0
- comprehend_telemetry-0.1.0/tests/test_wire_protocol.py +429 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: comprehend-telemetry
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Integration of comprehend.dev with OpenTelemetry in Python
|
|
5
|
+
Author: comprehend.dev AB
|
|
6
|
+
License-Expression: LicenseRef-Proprietary-Audit
|
|
7
|
+
Classifier: Development Status :: 3 - Alpha
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Requires-Python: >=3.8
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
Requires-Dist: opentelemetry-api>=1.27.0
|
|
18
|
+
Requires-Dist: opentelemetry-sdk>=1.27.0
|
|
19
|
+
Requires-Dist: websocket-client>=1.8.0
|
|
20
|
+
Provides-Extra: dev
|
|
21
|
+
Requires-Dist: pytest>=7.4.0; extra == "dev"
|
|
22
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
|
|
23
|
+
Requires-Dist: black>=23.7.0; extra == "dev"
|
|
24
|
+
Requires-Dist: isort>=5.12.0; extra == "dev"
|
|
25
|
+
Requires-Dist: flake8>=6.0.0; extra == "dev"
|
|
26
|
+
Requires-Dist: mypy>=1.5.0; extra == "dev"
|
|
27
|
+
Requires-Dist: types-requests; extra == "dev"
|
|
28
|
+
|
|
29
|
+
# Python OpenTelemetry integration with comprehend.dev
|
|
30
|
+
|
|
31
|
+
Integration of comprehend.dev with OpenTelemetry in Python environments.
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install comprehend-telemetry
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Development Setup
|
|
40
|
+
|
|
41
|
+
1. Create and activate a virtual environment:
|
|
42
|
+
```bash
|
|
43
|
+
python3 -m venv venv
|
|
44
|
+
source venv/bin/activate # On Windows: venv\Scripts\activate
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
2. Install dependencies:
|
|
48
|
+
```bash
|
|
49
|
+
pip install -r requirements-dev.txt
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
3. Run tests:
|
|
53
|
+
```bash
|
|
54
|
+
pytest
|
|
55
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Python OpenTelemetry integration with comprehend.dev
|
|
2
|
+
|
|
3
|
+
Integration of comprehend.dev with OpenTelemetry in Python environments.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install comprehend-telemetry
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Development Setup
|
|
12
|
+
|
|
13
|
+
1. Create and activate a virtual environment:
|
|
14
|
+
```bash
|
|
15
|
+
python3 -m venv venv
|
|
16
|
+
source venv/bin/activate # On Windows: venv\Scripts\activate
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
2. Install dependencies:
|
|
20
|
+
```bash
|
|
21
|
+
pip install -r requirements-dev.txt
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
3. Run tests:
|
|
25
|
+
```bash
|
|
26
|
+
pytest
|
|
27
|
+
```
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "comprehend-telemetry"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Integration of comprehend.dev with OpenTelemetry in Python"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "LicenseRef-Proprietary-Audit"
|
|
11
|
+
authors = [
|
|
12
|
+
{name = "comprehend.dev AB"}
|
|
13
|
+
]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 3 - Alpha",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
"Programming Language :: Python :: 3.8",
|
|
19
|
+
"Programming Language :: Python :: 3.9",
|
|
20
|
+
"Programming Language :: Python :: 3.10",
|
|
21
|
+
"Programming Language :: Python :: 3.11",
|
|
22
|
+
"Programming Language :: Python :: 3.12",
|
|
23
|
+
]
|
|
24
|
+
requires-python = ">=3.8"
|
|
25
|
+
dependencies = [
|
|
26
|
+
"opentelemetry-api>=1.27.0",
|
|
27
|
+
"opentelemetry-sdk>=1.27.0",
|
|
28
|
+
"websocket-client>=1.8.0",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
dev = [
|
|
33
|
+
"pytest>=7.4.0",
|
|
34
|
+
"pytest-cov>=4.1.0",
|
|
35
|
+
"black>=23.7.0",
|
|
36
|
+
"isort>=5.12.0",
|
|
37
|
+
"flake8>=6.0.0",
|
|
38
|
+
"mypy>=1.5.0",
|
|
39
|
+
"types-requests",
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[tool.setuptools.packages.find]
|
|
43
|
+
where = ["src"]
|
|
44
|
+
|
|
45
|
+
[tool.black]
|
|
46
|
+
line-length = 88
|
|
47
|
+
target-version = ['py38']
|
|
48
|
+
|
|
49
|
+
[tool.isort]
|
|
50
|
+
profile = "black"
|
|
51
|
+
line_length = 88
|
|
52
|
+
|
|
53
|
+
[tool.mypy]
|
|
54
|
+
python_version = "3.8"
|
|
55
|
+
warn_return_any = true
|
|
56
|
+
warn_unused_configs = true
|
|
57
|
+
disallow_untyped_defs = true
|