Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "sap-cloud-sdk"
version = "0.17.0"
version = "0.18.0"
description = "SAP Cloud SDK for Python"
readme = "README.md"
license = "Apache-2.0"
Expand Down Expand Up @@ -35,6 +35,7 @@ dependencies = [
]

[project.optional-dependencies]
extensibility = ["a2a-sdk>=0.2.0"]
starlette = ["starlette>=0.40.0"]
langchain = ["langchain-core>=1.2.7"]

Expand All @@ -49,6 +50,7 @@ packages = ["src/sap_cloud_sdk", "src/buf"]
dev = [
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
"pytest-asyncio>=1.0.0",
"pytest-bdd>=7.2.0",
"python-dotenv>=1.0.0",
"ty>=0.0.21",
Expand All @@ -57,8 +59,8 @@ dev = [
"starlette>=0.40.0",
"anyio>=3.6.2",
"httpx>=0.27.0",
"a2a-sdk>=0.2.0",
"langchain-core>=1.2.7",
"pytest-asyncio>=1.0.0",
]

[tool.pytest.ini_options]
Expand Down
60 changes: 60 additions & 0 deletions src/sap_cloud_sdk/core/telemetry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,37 @@
execute_tool_span,
invoke_agent_span,
)
from sap_cloud_sdk.core.telemetry.extensions import (
extension_context,
get_extension_context,
ExtensionType,
ATTR_IS_EXTENSION,
ATTR_EXTENSION_TYPE,
ATTR_CAPABILITY_ID,
ATTR_EXTENSION_ID,
ATTR_EXTENSION_NAME,
ATTR_EXTENSION_VERSION,
ATTR_EXTENSION_ITEM_NAME,
ATTR_EXTENSION_URL,
ATTR_SOLUTION_ID,
ATTR_SUMMARY_TOTAL_OPERATION_COUNT,
ATTR_SUMMARY_TOTAL_DURATION_MS,
ATTR_SUMMARY_TOOL_CALL_COUNT,
ATTR_SUMMARY_HOOK_CALL_COUNT,
ATTR_SUMMARY_HAS_INSTRUCTION,
resolve_source_info,
build_extension_span_attributes,
reset_tool_call_metrics,
get_tool_call_metrics,
record_tool_call_duration,
reset_hook_call_metrics,
get_hook_call_metrics,
record_hook_call_duration,
call_extension_tool,
call_extension_hook,
emit_extensions_summary_span,
ExtensionContextLogFilter,
)
from sap_cloud_sdk.core.telemetry.middleware import TelemetryMiddleware

__all__ = [
Expand All @@ -42,6 +73,35 @@
"chat_span",
"execute_tool_span",
"invoke_agent_span",
"extension_context",
"get_extension_context",
"ExtensionType",
"ATTR_IS_EXTENSION",
"ATTR_EXTENSION_TYPE",
"ATTR_CAPABILITY_ID",
"ATTR_EXTENSION_ID",
"ATTR_EXTENSION_NAME",
"ATTR_EXTENSION_VERSION",
"ATTR_EXTENSION_ITEM_NAME",
"ATTR_EXTENSION_URL",
"ATTR_SOLUTION_ID",
"ATTR_SUMMARY_TOTAL_OPERATION_COUNT",
"ATTR_SUMMARY_TOTAL_DURATION_MS",
"ATTR_SUMMARY_TOOL_CALL_COUNT",
"ATTR_SUMMARY_HOOK_CALL_COUNT",
"ATTR_SUMMARY_HAS_INSTRUCTION",
"resolve_source_info",
"build_extension_span_attributes",
"reset_tool_call_metrics",
"get_tool_call_metrics",
"record_tool_call_duration",
"reset_hook_call_metrics",
"get_hook_call_metrics",
"record_hook_call_duration",
"call_extension_tool",
"call_extension_hook",
"emit_extensions_summary_span",
"ExtensionContextLogFilter",
"TelemetryMiddleware",
]

Expand Down
Loading
Loading