impact 0.1__tar.gz → 0.2__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.
- {impact-0.1 → impact-0.2}/PKG-INFO +28 -28
- {impact-0.1 → impact-0.2}/impact/sdk/decorators/__init__.py +1 -1
- {impact-0.1 → impact-0.2}/impact/sdk/decorators/base.py +1 -1
- impact-0.2/impact/sdk/semconv_impact.py +45 -0
- {impact-0.1 → impact-0.2}/impact/sdk/tracing/manual.py +1 -1
- {impact-0.1 → impact-0.2}/impact/sdk/tracing/tracing.py +1 -1
- impact-0.2/impact/sdk/version.py +1 -0
- {impact-0.1 → impact-0.2}/pyproject.toml +28 -28
- impact-0.1/impact/sdk/version.py +0 -1
- {impact-0.1 → impact-0.2}/README.md +0 -0
- {impact-0.1 → impact-0.2}/impact/__init__.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/__init__.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/annotation/__init__.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/annotation/base_annotation.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/annotation/user_feedback.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/client/__init__.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/client/client.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/client/http.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/config/__init__.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/fetcher.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/images/image_uploader.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/instruments.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/prompts/__init__.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/prompts/client.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/prompts/model.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/prompts/registry.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/telemetry.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/tracing/__init__.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/tracing/content_allow_list.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/tracing/context_manager.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/utils/__init__.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/utils/in_memory_span_exporter.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/utils/json_encoder.py +0 -0
- {impact-0.1 → impact-0.2}/impact/sdk/utils/package_check.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: impact
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2
|
|
4
4
|
Summary: Impact tracing SDK for Python. This project is based primarily off the OpenLLMetry library.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: Impact AI
|
|
@@ -19,40 +19,40 @@ Requires-Dist: jinja2 (>=3.1.5,<4.0.0)
|
|
|
19
19
|
Requires-Dist: opentelemetry-api (>=1.28.0,<2.0.0)
|
|
20
20
|
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc (>=1.28.0,<2.0.0)
|
|
21
21
|
Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.28.0,<2.0.0)
|
|
22
|
-
Requires-Dist: opentelemetry-instrumentation-alephalpha (>=0.39.
|
|
23
|
-
Requires-Dist: opentelemetry-instrumentation-anthropic (>=0.39.
|
|
24
|
-
Requires-Dist: opentelemetry-instrumentation-bedrock (>=0.39.
|
|
25
|
-
Requires-Dist: opentelemetry-instrumentation-chromadb (>=0.39.
|
|
26
|
-
Requires-Dist: opentelemetry-instrumentation-cohere (>=0.39.
|
|
27
|
-
Requires-Dist: opentelemetry-instrumentation-crewai (>=0.39.
|
|
28
|
-
Requires-Dist: opentelemetry-instrumentation-google-generativeai (>=0.39.
|
|
29
|
-
Requires-Dist: opentelemetry-instrumentation-groq (>=0.39.
|
|
30
|
-
Requires-Dist: opentelemetry-instrumentation-haystack (>=0.39.
|
|
31
|
-
Requires-Dist: opentelemetry-instrumentation-lancedb (>=0.39.
|
|
32
|
-
Requires-Dist: opentelemetry-instrumentation-langchain (>=0.39.
|
|
33
|
-
Requires-Dist: opentelemetry-instrumentation-llamaindex (>=0.39.
|
|
34
|
-
Requires-Dist: opentelemetry-instrumentation-marqo (>=0.39.
|
|
35
|
-
Requires-Dist: opentelemetry-instrumentation-milvus (>=0.39.
|
|
36
|
-
Requires-Dist: opentelemetry-instrumentation-mistralai (>=0.39.
|
|
37
|
-
Requires-Dist: opentelemetry-instrumentation-ollama (>=0.39.
|
|
38
|
-
Requires-Dist: opentelemetry-instrumentation-openai (>=0.39.
|
|
39
|
-
Requires-Dist: opentelemetry-instrumentation-pinecone (>=0.39.
|
|
40
|
-
Requires-Dist: opentelemetry-instrumentation-qdrant (>=0.39.
|
|
41
|
-
Requires-Dist: opentelemetry-instrumentation-replicate (>=0.39.
|
|
22
|
+
Requires-Dist: opentelemetry-instrumentation-alephalpha (>=0.39.3,<0.40.0)
|
|
23
|
+
Requires-Dist: opentelemetry-instrumentation-anthropic (>=0.39.3,<0.40.0)
|
|
24
|
+
Requires-Dist: opentelemetry-instrumentation-bedrock (>=0.39.3,<0.40.0)
|
|
25
|
+
Requires-Dist: opentelemetry-instrumentation-chromadb (>=0.39.3,<0.40.0)
|
|
26
|
+
Requires-Dist: opentelemetry-instrumentation-cohere (>=0.39.3,<0.40.0)
|
|
27
|
+
Requires-Dist: opentelemetry-instrumentation-crewai (>=0.39.3,<0.40.0)
|
|
28
|
+
Requires-Dist: opentelemetry-instrumentation-google-generativeai (>=0.39.3,<0.40.0)
|
|
29
|
+
Requires-Dist: opentelemetry-instrumentation-groq (>=0.39.3,<0.40.0)
|
|
30
|
+
Requires-Dist: opentelemetry-instrumentation-haystack (>=0.39.3,<0.40.0)
|
|
31
|
+
Requires-Dist: opentelemetry-instrumentation-lancedb (>=0.39.3,<0.40.0)
|
|
32
|
+
Requires-Dist: opentelemetry-instrumentation-langchain (>=0.39.3,<0.40.0)
|
|
33
|
+
Requires-Dist: opentelemetry-instrumentation-llamaindex (>=0.39.3,<0.40.0)
|
|
34
|
+
Requires-Dist: opentelemetry-instrumentation-marqo (>=0.39.3,<0.40.0)
|
|
35
|
+
Requires-Dist: opentelemetry-instrumentation-milvus (>=0.39.3,<0.40.0)
|
|
36
|
+
Requires-Dist: opentelemetry-instrumentation-mistralai (>=0.39.3,<0.40.0)
|
|
37
|
+
Requires-Dist: opentelemetry-instrumentation-ollama (>=0.39.3,<0.40.0)
|
|
38
|
+
Requires-Dist: opentelemetry-instrumentation-openai (>=0.39.3,<0.40.0)
|
|
39
|
+
Requires-Dist: opentelemetry-instrumentation-pinecone (>=0.39.3,<0.40.0)
|
|
40
|
+
Requires-Dist: opentelemetry-instrumentation-qdrant (>=0.39.3,<0.40.0)
|
|
41
|
+
Requires-Dist: opentelemetry-instrumentation-replicate (>=0.39.3,<0.40.0)
|
|
42
42
|
Requires-Dist: opentelemetry-instrumentation-requests (>=0.50b0)
|
|
43
|
-
Requires-Dist: opentelemetry-instrumentation-sagemaker (>=0.39.
|
|
43
|
+
Requires-Dist: opentelemetry-instrumentation-sagemaker (>=0.39.3,<0.40.0)
|
|
44
44
|
Requires-Dist: opentelemetry-instrumentation-sqlalchemy (>=0.50b0)
|
|
45
45
|
Requires-Dist: opentelemetry-instrumentation-threading (>=0.50b0)
|
|
46
|
-
Requires-Dist: opentelemetry-instrumentation-together (>=0.39.
|
|
47
|
-
Requires-Dist: opentelemetry-instrumentation-transformers (>=0.39.
|
|
46
|
+
Requires-Dist: opentelemetry-instrumentation-together (>=0.39.3,<0.40.0)
|
|
47
|
+
Requires-Dist: opentelemetry-instrumentation-transformers (>=0.39.3,<0.40.0)
|
|
48
48
|
Requires-Dist: opentelemetry-instrumentation-urllib3 (>=0.50b0)
|
|
49
|
-
Requires-Dist: opentelemetry-instrumentation-vertexai (>=0.39.
|
|
50
|
-
Requires-Dist: opentelemetry-instrumentation-watsonx (>=0.39.
|
|
51
|
-
Requires-Dist: opentelemetry-instrumentation-weaviate (>=0.39.
|
|
49
|
+
Requires-Dist: opentelemetry-instrumentation-vertexai (>=0.39.3,<0.40.0)
|
|
50
|
+
Requires-Dist: opentelemetry-instrumentation-watsonx (>=0.39.3,<0.40.0)
|
|
51
|
+
Requires-Dist: opentelemetry-instrumentation-weaviate (>=0.39.3,<0.40.0)
|
|
52
52
|
Requires-Dist: opentelemetry-sdk (>=1.28.0,<2.0.0)
|
|
53
53
|
Requires-Dist: opentelemetry-semantic-conventions-ai (==0.4.3)
|
|
54
54
|
Requires-Dist: pydantic (>=1)
|
|
55
|
-
Requires-Dist: tenacity (>=8.2.3,<
|
|
55
|
+
Requires-Dist: tenacity (>=8.2.3,<10.0)
|
|
56
56
|
Project-URL: Documentation, https://impact.ai
|
|
57
57
|
Project-URL: Repository, https://github.com/impact-ai/impact-sdk
|
|
58
58
|
Description-Content-Type: text/markdown
|
|
@@ -9,7 +9,7 @@ import warnings
|
|
|
9
9
|
from opentelemetry import trace
|
|
10
10
|
from opentelemetry.trace.status import Status, StatusCode
|
|
11
11
|
from opentelemetry import context as context_api
|
|
12
|
-
from
|
|
12
|
+
from impact.sdk.semconv_impact import SpanAttributes, ImpactSpanKindValues
|
|
13
13
|
|
|
14
14
|
from impact.sdk.telemetry import Telemetry
|
|
15
15
|
from impact.sdk.tracing import get_tracer, set_workflow_name
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Local implementation of ImpactSpanKindValues and SpanAttributes.
|
|
3
|
+
|
|
4
|
+
This module provides local versions of classes that were previously imported
|
|
5
|
+
from opentelemetry.semconv_ai. By maintaining our own implementation, we have
|
|
6
|
+
more control over these critical components without external dependencies.
|
|
7
|
+
|
|
8
|
+
The SpanAttributes class inherits from the OpenTelemetry version to ensure
|
|
9
|
+
compatibility while allowing us to add our own attributes.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from enum import Enum
|
|
13
|
+
from opentelemetry.semconv_ai import SpanAttributes as OTelSpanAttributes
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class ImpactSpanKindValues(Enum):
|
|
17
|
+
WORKFLOW = "workflow"
|
|
18
|
+
TASK = "task"
|
|
19
|
+
AGENT = "agent"
|
|
20
|
+
TOOL = "tool"
|
|
21
|
+
UNKNOWN = "unknown"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class SpanAttributes(OTelSpanAttributes):
|
|
25
|
+
# Impact specific attributes
|
|
26
|
+
IMPACT_SPAN_KIND = "impact.span.kind"
|
|
27
|
+
IMPACT_WORKFLOW_NAME = "impact.workflow.name"
|
|
28
|
+
IMPACT_ENTITY_NAME = "impact.entity.name"
|
|
29
|
+
IMPACT_ENTITY_PATH = "impact.entity.path"
|
|
30
|
+
IMPACT_ENTITY_VERSION = "impact.entity.version"
|
|
31
|
+
IMPACT_ENTITY_INPUT = "impact.entity.input"
|
|
32
|
+
IMPACT_ENTITY_OUTPUT = "impact.entity.output"
|
|
33
|
+
IMPACT_ASSOCIATION_PROPERTIES = "impact.association.properties"
|
|
34
|
+
|
|
35
|
+
# Prompts
|
|
36
|
+
IMPACT_PROMPT_MANAGED = "impact.prompt.managed"
|
|
37
|
+
IMPACT_PROMPT_KEY = "impact.prompt.key"
|
|
38
|
+
IMPACT_PROMPT_VERSION = "impact.prompt.version"
|
|
39
|
+
IMPACT_PROMPT_VERSION_NAME = "impact.prompt.version_name"
|
|
40
|
+
IMPACT_PROMPT_VERSION_HASH = "impact.prompt.version_hash"
|
|
41
|
+
IMPACT_PROMPT_TEMPLATE = "impact.prompt.template"
|
|
42
|
+
IMPACT_PROMPT_TEMPLATE_VARIABLES = "impact.prompt.template_variables"
|
|
43
|
+
|
|
44
|
+
# Deprecated
|
|
45
|
+
IMPACT_CORRELATION_ID = "impact.correlation.id"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from contextlib import contextmanager
|
|
2
|
-
from
|
|
2
|
+
from impact.sdk.semconv_impact import SpanAttributes
|
|
3
3
|
from opentelemetry.trace import Span
|
|
4
4
|
from pydantic import BaseModel
|
|
5
5
|
from impact.sdk.tracing.context_manager import get_tracer
|
|
@@ -24,7 +24,7 @@ from opentelemetry.trace import get_tracer_provider, ProxyTracerProvider
|
|
|
24
24
|
from opentelemetry.context import get_value, attach, set_value
|
|
25
25
|
from opentelemetry.instrumentation.threading import ThreadingInstrumentor
|
|
26
26
|
|
|
27
|
-
from
|
|
27
|
+
from impact.sdk.semconv_impact import SpanAttributes
|
|
28
28
|
from impact.sdk import Telemetry
|
|
29
29
|
from impact.sdk.images.image_uploader import ImageUploader
|
|
30
30
|
from impact.sdk.instruments import Instruments
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.39.3"
|
|
@@ -8,7 +8,7 @@ show_missing = true
|
|
|
8
8
|
|
|
9
9
|
[tool.poetry]
|
|
10
10
|
name = "impact"
|
|
11
|
-
version = "0.
|
|
11
|
+
version = "0.2"
|
|
12
12
|
description = "Impact tracing SDK for Python. This project is based primarily off the OpenLLMetry library."
|
|
13
13
|
authors = [
|
|
14
14
|
"Impact AI <biz@impact.ai>"
|
|
@@ -32,34 +32,34 @@ opentelemetry-instrumentation-sqlalchemy = ">=0.50b0"
|
|
|
32
32
|
opentelemetry-instrumentation-urllib3 = ">=0.50b0"
|
|
33
33
|
opentelemetry-instrumentation-threading = ">=0.50b0"
|
|
34
34
|
opentelemetry-semantic-conventions-ai = "0.4.3"
|
|
35
|
-
opentelemetry-instrumentation-mistralai = "^0.39.
|
|
36
|
-
opentelemetry-instrumentation-openai = "^0.39.
|
|
37
|
-
opentelemetry-instrumentation-ollama = "^0.39.
|
|
38
|
-
opentelemetry-instrumentation-anthropic = "^0.39.
|
|
39
|
-
opentelemetry-instrumentation-cohere = "^0.39.
|
|
40
|
-
opentelemetry-instrumentation-crewai = "^0.39.
|
|
41
|
-
opentelemetry-instrumentation-google-generativeai = "^0.39.
|
|
42
|
-
opentelemetry-instrumentation-pinecone = "^0.39.
|
|
43
|
-
opentelemetry-instrumentation-qdrant = "^0.39.
|
|
44
|
-
opentelemetry-instrumentation-langchain = "^0.39.
|
|
45
|
-
opentelemetry-instrumentation-lancedb = "^0.39.
|
|
46
|
-
opentelemetry-instrumentation-chromadb = "^0.39.
|
|
47
|
-
opentelemetry-instrumentation-transformers = "^0.39.
|
|
48
|
-
opentelemetry-instrumentation-together = "^0.39.
|
|
49
|
-
opentelemetry-instrumentation-llamaindex = "^0.39.
|
|
50
|
-
opentelemetry-instrumentation-milvus = "^0.39.
|
|
51
|
-
opentelemetry-instrumentation-haystack = "^0.39.
|
|
52
|
-
opentelemetry-instrumentation-bedrock = "^0.39.
|
|
53
|
-
opentelemetry-instrumentation-sagemaker = "^0.39.
|
|
54
|
-
opentelemetry-instrumentation-replicate = "^0.39.
|
|
55
|
-
opentelemetry-instrumentation-vertexai = "^0.39.
|
|
56
|
-
opentelemetry-instrumentation-watsonx = "^0.39.
|
|
57
|
-
opentelemetry-instrumentation-weaviate = "^0.39.
|
|
58
|
-
opentelemetry-instrumentation-alephalpha = "^0.39.
|
|
59
|
-
opentelemetry-instrumentation-marqo = "^0.39.
|
|
60
|
-
opentelemetry-instrumentation-groq = "^0.39.
|
|
35
|
+
opentelemetry-instrumentation-mistralai = "^0.39.3"
|
|
36
|
+
opentelemetry-instrumentation-openai = "^0.39.3"
|
|
37
|
+
opentelemetry-instrumentation-ollama = "^0.39.3"
|
|
38
|
+
opentelemetry-instrumentation-anthropic = "^0.39.3"
|
|
39
|
+
opentelemetry-instrumentation-cohere = "^0.39.3"
|
|
40
|
+
opentelemetry-instrumentation-crewai = "^0.39.3"
|
|
41
|
+
opentelemetry-instrumentation-google-generativeai = "^0.39.3"
|
|
42
|
+
opentelemetry-instrumentation-pinecone = "^0.39.3"
|
|
43
|
+
opentelemetry-instrumentation-qdrant = "^0.39.3"
|
|
44
|
+
opentelemetry-instrumentation-langchain = "^0.39.3"
|
|
45
|
+
opentelemetry-instrumentation-lancedb = "^0.39.3"
|
|
46
|
+
opentelemetry-instrumentation-chromadb = "^0.39.3"
|
|
47
|
+
opentelemetry-instrumentation-transformers = "^0.39.3"
|
|
48
|
+
opentelemetry-instrumentation-together = "^0.39.3"
|
|
49
|
+
opentelemetry-instrumentation-llamaindex = "^0.39.3"
|
|
50
|
+
opentelemetry-instrumentation-milvus = "^0.39.3"
|
|
51
|
+
opentelemetry-instrumentation-haystack = "^0.39.3"
|
|
52
|
+
opentelemetry-instrumentation-bedrock = "^0.39.3"
|
|
53
|
+
opentelemetry-instrumentation-sagemaker = "^0.39.3"
|
|
54
|
+
opentelemetry-instrumentation-replicate = "^0.39.3"
|
|
55
|
+
opentelemetry-instrumentation-vertexai = "^0.39.3"
|
|
56
|
+
opentelemetry-instrumentation-watsonx = "^0.39.3"
|
|
57
|
+
opentelemetry-instrumentation-weaviate = "^0.39.3"
|
|
58
|
+
opentelemetry-instrumentation-alephalpha = "^0.39.3"
|
|
59
|
+
opentelemetry-instrumentation-marqo = "^0.39.3"
|
|
60
|
+
opentelemetry-instrumentation-groq = "^0.39.3"
|
|
61
61
|
colorama = "^0.4.6"
|
|
62
|
-
tenacity = "
|
|
62
|
+
tenacity = ">=8.2.3, <10.0"
|
|
63
63
|
pydantic = ">=1"
|
|
64
64
|
jinja2 = "^3.1.5"
|
|
65
65
|
deprecated = "^1.2.14"
|
impact-0.1/impact/sdk/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.39.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|