Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

[Feat]: Add OpenTelemetry Instrumentation for monitoring Crawl4AI Agents (#546)

Patcher02af4bb19c91
diff --git a/docs/images/docs-crawl4ai-banner.gif b/docs/images/docs-crawl4ai-banner.gif
new file mode 100644
index 00000000..50d204ac
Binary files /dev/null and b/docs/images/docs-crawl4ai-banner.gif differ
diff --git a/docs/latest/integrations/crawl4ai.mdx b/docs/latest/integrations/crawl4ai.mdx
new file mode 100644
index 00000000..1a312720
--- /dev/null
+++ b/docs/latest/integrations/crawl4ai.mdx
@@ -0,0 +1,78 @@
+---
+title: 'Monitor Crawl4AI using OpenTelemetry'
+sidebarTitle: 'Crawl4AI'
+---
+
+<Frame>
+ <img src="/images/docs-crawl4ai-banner.gif" />
+</Frame>
+
+OpenLIT uses OpenTelemetry Auto-Instrumentation to help you monitor Crawling Agents built using Crawl4AI. This includes tracking performance and operation stats.
+
+Auto-instrumentation means you don't have to set up monitoring manually for different LLMs, frameworks, or databases. By simply adding OpenLIT in your application, all the necessary monitoring configurations are automatically set up.
+
+The integration is compatible with
+- Crawl4AI Python SDK client `>= 0.4.0`
+
+## Get Started
+
+<Steps>
+ <Step title="Install OpenLIT">
+ Open your command line or terminal and run:
+ ```shell
+ pip install openlit
+ ```
+ </Step>
+ <Step title="Initialize OpenLIT in your Application">
+ You can set up OpenLIT in your application using either function arguments directly in your code or by using environment variables.
+ <Tabs>
+ <Tab title="Setup using function arguments">
+
+ Add the following two lines to your application code:
+
+ ```python
+ import openlit
+
+ openlit.init(
+ otlp_endpoint="YOUR_OTEL_ENDPOINT",
+ )
+ ```
+
+ Replace:
+ 1. `YOUR_OTEL_ENDPOINT` with the URL of your OpenTelemetry backend, such as `http://127.0.0.1:4318` if you are using OpenLIT and a local OTel Collector.
+ </Tab>
+ <Tab title="Setup using Environment Variables">
+
+ Add the following two lines to your application code:
+
+ ```python
+ import openlit
+
+ openlit.init()
+ ```
+
+ Then, configure the your OTLP endpoint using environment variable:
+ ```shell
+ export OTEL_EXPORTER_OTLP_ENDPOINT = "YOUR_OTEL_ENDPOINT"
+ ```
+
+ Replace:
+ 1. `YOUR_OTEL_ENDPOINT` with the URL of your OpenTelemetry backend, such as `http://127.0.0.1:4318` if you are using OpenLIT and a local OTel Collector.
+ </Tab>
+ </Tabs>
+ To send metrics and traces to other Observability tools, refer to the [Connections Guide](/latest/connections/intro).
+
+ For more advanced configurations and application use cases, visit the [OpenLIT Python repository](https://github.com/openlit/openlit/tree/main/sdk/python).
+ </Step>
+</Steps>
+
+---
+
+<CardGroup cols={2}>
+<Card title="Connections" href="/latest/connections/intro" icon='link'>
+Connect to your existing Observablity Stack
+</Card>
+<Card title="SDK configuration" href="/latest/sdk-configuration" icon='file-code'>
+Documentation of the configuration options for the OpenLIT SDK.
+</Card>
+</CardGroup>
\ No newline at end of file
diff --git a/docs/latest/integrations/introduction.mdx b/docs/latest/integrations/introduction.mdx
index f0f5007c..acfa8daf 100644
--- a/docs/latest/integrations/introduction.mdx
+++ b/docs/latest/integrations/introduction.mdx
@@ -2186,6 +2186,13 @@ Start integrating and monitoring your applications with OpenLIT in just one line
}
>
</Card>
+ <Card
+ title="Crawl4AI"
+ href="/latest/integrations/crawl4ai"
+ iconType="duotone"
+ icon="robot"
+ >
+ </Card>
<Card
title="Dynamiq"
href="/latest/integrations/dynamiq"
diff --git a/docs/mint.json b/docs/mint.json
index c3becf08..66bace23 100644
--- a/docs/mint.json
+++ b/docs/mint.json
@@ -138,6 +138,7 @@
"latest/integrations/phidata",
"latest/integrations/multion",
"latest/integrations/julep-ai",
+ "latest/integrations/crawl4ai",
"latest/integrations/dynamiq",
"latest/integrations/controlflow"
]
diff --git a/sdk/python/README.md b/sdk/python/README.md
index d9e327d4..3c9820c1 100644
--- a/sdk/python/README.md
+++ b/sdk/python/README.md
@@ -38,7 +38,7 @@ This project proudly follows and maintains the [Semantic Conventions](https://gi
| [✅ Ollama](https://docs.openlit.io/latest/integrations/ollama) | [✅ Pinecone](https://docs.openlit.io/latest/integrations/pinecone) | [✅ LiteLLM](https://docs.openlit.io/latest/integrations/litellm) | [✅ AMD](https://docs.openlit.io/latest/integrations/amd-gpu) |
| [✅ Anthropic](https://docs.openlit.io/latest/integrations/anthropic) | [✅ Qdrant](https://docs.openlit.io/latest/integrations/qdrant) | [✅ LlamaIndex](https://docs.openlit.io/latest/integrations/llama-index) | |
| [✅ GPT4All](https://docs.openlit.io/latest/integrations/gpt4all) | [✅ Milvus](https://docs.openlit.io/latest/integrations/milvus) | [✅ Haystack](https://docs.openlit.io/latest/integrations/haystack) | |
-| [✅ Cohere](https://docs.openlit.io/latest/integrations/cohere) | [✅ AstraDB](https://docs.openlit.io/latest/integrations/astradb) | [✅ EmbedChain](https://docs.openlit.io/latest/integrations/embedchain) | |
+| [✅ Cohere](https://docs.openlit.io/latest/integrations/cohere) | [✅ AstraDB](https://docs.openlit.io/latest/integrations/astradb) | [✅ EmbedChain](https://docs.openlit.io/latest/integrations/embedchain) | |
| [✅ Mistral](https://docs.openlit.io/latest/integrations/mistral) | | [✅ Guardrails](https://docs.openlit.io/latest/integrations/guardrails) | |
| [✅ Azure OpenAI](https://docs.openlit.io/latest/integrations/azure-openai) | | [✅ CrewAI](https://docs.openlit.io/latest/integrations/crewai) | |
| [✅ Azure AI Inference](https://docs.openlit.io/latest/integrations/azure-ai-inference) | | [✅ DSPy](https://docs.openlit.io/latest/integrations/dspy) | |
@@ -49,7 +49,7 @@ This project proudly follows and maintains the [Semantic Conventions](https://gi
| [✅ Vertex AI](https://docs.openlit.io/latest/integrations/vertexai) | | [✅ MultiOn](https://docs.openlit.io/latest/integrations/multion) | |
| [✅ Groq](https://docs.openlit.io/latest/integrations/groq) | | [✅ Julep AI](https://docs.openlit.io/latest/integrations/julep-ai) | |
| [✅ ElevenLabs](https://docs.openlit.io/latest/integrations/elevenlabs) | | [✅ ControlFlow](https://docs.openlit.io/latest/integrations/controlflow) | |
-| [✅ vLLM](https://docs.openlit.io/latest/integrations/vllm) | | | |
+| [✅ vLLM](https://docs.openlit.io/latest/integrations/vllm) | | [✅ Crawl4AI](https://docs.openlit.io/latest/integrations/crawl4ai) | |
| [✅ OLA Krutrim](https://docs.openlit.io/latest/integrations/krutrim) | | | |
| [✅ Google AI Studio](https://docs.openlit.io/latest/integrations/google-ai-studio) | | | |
| [✅ NVIDIA NIM](https://docs.openlit.io/latest/integrations/nvidia-nim) | | | |
@@ -57,7 +57,7 @@ This project proudly follows and maintains the [Semantic Conventions](https://gi
| [✅ Reka AI](https://docs.openlit.io/latest/integrations/reka) | | | |
| [✅ xAI](https://docs.openlit.io/latest/integrations/xai) | | | |
| [✅ Prem AI](https://docs.openlit.io/latest/integrations/premai) | | | |
-| [✅ Assembly AI](https://docs.openlit.io/latest/integrations/assemblyai) | | | |
+| [✅ Assembly AI](https://docs.openlit.io/latest/integrations/assemblyai) | | | |
## Supported Destinations
- [✅ OpenTelemetry Collector](https://docs.openlit.io/latest/connections/otelcol)
@@ -229,7 +229,7 @@ We are dedicated to continuously improving OpenLIT SDKs. Here's a look at what's
| [OpenTelemetry-native auto-instrumentation for NVIDIA GPU Monitoring](https://docs.openlit.io/latest/features/gpu) | ✅ Completed |
| [Real-Time Guardrails Implementation](https://docs.openlit.io/latest/features/guardrails) | ✅ Completed |
| [Programmatic Evaluation for LLM Response](https://docs.openlit.io/latest/features/evaluations) | ✅ Completed |
-| [OpenTelmetry auto-instrumentation for Agent Frameworks like CrewAI, DsPy]() | 🔜 Coming Soon |
+| [OpenTelemetry-native AI Agent Observability]() | ✅ Completed |
## 🌱 Contributing
diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml
index c4c4bb53..fed23a9e 100644
--- a/sdk/python/pyproject.toml
+++ b/sdk/python/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openlit"
-version = "1.32.9"
+version = "1.32.10"
description = "OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications and GPUs, facilitating the integration of observability into your GenAI-driven projects"
authors = ["OpenLIT"]
repository = "https://github.com/openlit/openlit/tree/main/openlit/python"
diff --git a/sdk/python/src/openlit/__init__.py b/sdk/python/src/openlit/__init__.py
index bce4df25..e2248689 100644
--- a/sdk/python/src/openlit/__init__.py
+++ b/sdk/python/src/openlit/__init__.py
@@ -60,6 +60,7 @@ from openlit.instrumentation.phidata import PhidataInstrumentor
from openlit.instrumentation.julep import JulepInstrumentor
from openlit.instrumentation.ai21 import AI21Instrumentor
from openlit.instrumentation.controlflow import ControlFlowInstrumentor
+from openlit.instrumentation.crawl4ai import Crawl4AIInstrumentor
from openlit.instrumentation.gpu import GPUInstrumentor
import openlit.guard
import openlit.evals
@@ -258,6 +259,7 @@ def init(environment="default", application_name="default", tracer=None, otlp_en
"ai21": "ai21",
"controlflow": "controlflow",
"assemblyai": "assemblyai",
+ "crawl4ai": "crawl4ai",
}
invalid_instrumentors = [
@@ -351,6 +353,7 @@ def init(environment="default", application_name="default", tracer=None, otlp_en
"ai21": AI21Instrumentor(),
"controlflow": ControlFlowInstrumentor(),
"assemblyai": AssemblyAIInstrumentor(),
+ "crawl4ai": Crawl4AIInstrumentor(),
}
# Initialize and instrument only the enabled instrumentors
diff --git a/sdk/python/src/openlit/instrumentation/crawl4ai/__init__.py b/sdk/python/src/openlit/instrumentation/crawl4ai/__init__.py
new file mode 100644
index 00000000..dc1816c4
--- /dev/null
+++ b/sdk/python/src/openlit/instrumentation/crawl4ai/__init__.py
@@ -0,0 +1,52 @@
+# pylint: disable=useless-return, bad-staticmethod-argument, disable=duplicate-code
+"""Initializer of Auto Instrumentation of Crawl4AI Functions"""
+
+from typing import Collection
+import importlib.metadata
+from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
+from wrapt import wrap_function_wrapper
+
+from openlit.instrumentation.crawl4ai.crawl4ai import (
+ wrap_crawl
+)
+from openlit.instrumentation.crawl4ai.async_crawl4ai import (
+ async_wrap_crawl
+)
+
+_instruments = ("crawl4ai >= 0.4.0",)
+
+class Crawl4AIInstrumentor(BaseInstrumentor):
+ """
+ An instrumentor for crawl4ai's client library.
+ """
+
+ def instrumentation_dependencies(self) -> Collection[str]:
+ return _instruments
+
+ def _instrument(self, **kwargs):
+ application_name = kwargs.get("application_name", "default_application")
+ environment = kwargs.get("environment", "default_environment")
+ tracer = kwargs.get("tracer")
+ metrics = kwargs.get("metrics_dict")
+ pricing_info = kwargs.get("pricing_info", {})
+ trace_content = kwargs.get("trace_content", False)
+ disable_metrics = kwargs.get("disable_metrics")
+ version = importlib.metadata.version("crawl4ai")
+
+ wrap_function_wrapper(
+ "crawl4ai.web_crawler",
+ "WebCrawler.run",
+ wrap_crawl("crawl4ai.web_crawl", version, environment, application_name,
+ tracer, pricing_info, trace_content, metrics, disable_metrics),
+ )
+
+ wrap_function_wrapper(
+ "crawl4ai.async_webcrawler",
+ "AsyncWebCrawler.arun",
+ async_wrap_crawl("crawl4ai.web_crawl", version, environment, application_name,
+ tracer, pricing_info, trace_content, metrics, disable_metrics),
+ )
+
+ def _uninstrument(self, **kwargs):
+ # Proper uninstrumentation logic to revert patched methods
+ pass
diff --git a/sdk/python/src/openlit/instrumentation/crawl4ai/async_crawl4ai.py b/sdk/python/src/openlit/instrumentation/crawl4ai/async_crawl4ai.py
new file mode 100644
index 00000000..5054c313
--- /dev/null
+++ b/sdk/python/src/openlit/instrumentation/crawl4ai/async_crawl4ai.py
@@ -0,0 +1,104 @@
+# pylint: disable=duplicate-code, broad-exception-caught, too-many-statements, unused-argument
+"""
+Module for monitoring Crawl4AI calls.
+"""
+
+import logging
+from opentelemetry.trace import SpanKind, Status, StatusCode
+from opentelemetry.sdk.resources import TELEMETRY_SDK_NAME
+from openlit.__helpers import (
+ handle_exception,
+)
+from openlit.semcov import SemanticConvetion
+
+# Initialize logger for logging potential issues and operations
+logger = logging.getLogger(__name__)
+
+def async_wrap_crawl(gen_ai_endpoint, version, environment, application_name,
+ tracer, pricing_info, trace_content, metrics, disable_metrics):
+ """
+ Generates a telemetry wrapper for chat completions to collect metrics.
+
+ Args:
+ gen_ai_endpoint: Endpoint identifier for logging and tracing.
+ version: Version of the monitoring package.
+ environment: Deployment environment (e.g., production, staging).
+ application_name: Name of the application using the Crawl4AI Agent.
+ tracer: OpenTelemetry tracer for creating spans.
+ pricing_info: Information used for calculating the cost of Crawl4AI usage.
+ trace_content: Flag indicating whether to trace the actual content.
+
+ Returns:
+ A function that wraps the chat completions method to add telemetry.
+ """
+
+ async def wrapper(wrapped, instance, args, kwargs):
+ """
+ Wraps the 'chat.completions' API call to add telemetry.
+
+ This collects metrics such as execution time, cost, and token usage, and handles errors
+ gracefully, adding details to the trace for observability.
+
+ Args:
+ wrapped: The original 'chat.completions' method to be wrapped.
+ instance: The instance of the class where the original method is defined.
+ args: Positional arguments for the 'chat.completions' method.
+ kwargs: Keyword arguments for the 'chat.completions' method.
+
+ Returns:
+ The response from the original 'chat.completions' method.
+ """
+
+ # pylint: disable=line-too-long
+ with tracer.start_as_current_span(gen_ai_endpoint, kind= SpanKind.CLIENT) as span:
+ response = await wrapped(*args, **kwargs)
+
+ try:
+ # Set base span attribues
+ span.set_attribute(TELEMETRY_SDK_NAME, "openlit")
+ span.set_attribute(SemanticConvetion.GEN_AI_SYSTEM,
+ SemanticConvetion.GEN_AI_SYSTEM_CRAWL4AI)
+ span.set_attribute(SemanticConvetion.GEN_AI_TYPE,
+ SemanticConvetion.GEN_AI_TYPE_AGENT)
+ span.set_attribute(SemanticConvetion.GEN_AI_ENDPOINT,
+ gen_ai_endpoint)
+ span.set_attribute(SemanticConvetion.GEN_AI_APPLICATION_NAME,
+ application_name)
+ span.set_attribute(SemanticConvetion.GEN_AI_ENVIRONMENT,
+ environment)
+ span.set_attribute(SemanticConvetion.GEN_AI_AGENT_TYPE,
+ "browser")
+ span.set_attribute(SemanticConvetion.GEN_AI_AGENT_ENABLE_CACHE, not kwargs.get("disable_cache", False))
+
+ url = kwargs.get("url") if "url" in kwargs else str(args[0]) if args else None
+ if url is not None:
+ span.set_attribute(SemanticConvetion.GEN_AI_AGENT_BROWSE_URL, url)
+
+ extraction_strategy = kwargs.get("extraction_strategy", "NoExtractionStrategy")
+ extraction_name = extraction_strategy.name if hasattr(extraction_strategy, 'name') else extraction_strategy
+
+ span.set_attribute(SemanticConvetion.GEN_AI_AGENT_STRATEGY, extraction_name)
+
+ if extraction_name == "LLMExtractionStrategy" and hasattr(extraction_strategy, 'provider'):
+ _, llm_model = extraction_strategy.provider.split('/')
+ span.set_attribute(SemanticConvetion.GEN_AI_REQUEST_MODEL, llm_model)
+
+ elif extraction_name == "CosineStrategy":
+ span.set_attribute(SemanticConvetion.GEN_AI_REQUEST_MODEL, "all-MiniLM-L6-v2")
+
+ elif extraction_name == "JsonCssExtractionStrategy" and hasattr(extraction_strategy, 'schema'):
+ span.set_attribute(SemanticConvetion.GEN_AI_AGENT_SCHEMA, str(extraction_strategy.schema))
+
+ span.set_status(Status(StatusCode.OK))
+
+ # Return original response
+ return response
+
+ except Exception as e:
+ handle_exception(span, e)
+ logger.error("Error in trace creation: %s", e)
+
+ # Return original response
+ return response
+
+ return wrapper
diff --git a/sdk/python/src/openlit/instrumentation/crawl4ai/crawl4ai.py b/sdk/python/src/openlit/instrumentation/crawl4ai/crawl4ai.py
new file mode 100644
index 00000000..3f6f0b53
--- /dev/null
+++ b/sdk/python/src/openlit/instrumentation/crawl4ai/crawl4ai.py
@@ -0,0 +1,104 @@
+# pylint: disable=duplicate-code, broad-exception-caught, too-many-statements, unused-argument
+"""
+Module for monitoring Crawl4AI calls.
+"""
+
+import logging
+from opentelemetry.trace import SpanKind, Status, StatusCode
+from opentelemetry.sdk.resources import TELEMETRY_SDK_NAME
+from openlit.__helpers import (
+ handle_exception,
+)
+from openlit.semcov import SemanticConvetion
+
+# Initialize logger for logging potential issues and operations
+logger = logging.getLogger(__name__)
+
+def wrap_crawl(gen_ai_endpoint, version, environment, application_name,
+ tracer, pricing_info, trace_content, metrics, disable_metrics):
+ """
+ Generates a telemetry wrapper for chat completions to collect metrics.
+
+ Args:
+ gen_ai_endpoint: Endpoint identifier for logging and tracing.
+ version: Version of the monitoring package.
+ environment: Deployment environment (e.g., production, staging).
+ application_name: Name of the application using the Crawl4AI Agent.
+ tracer: OpenTelemetry tracer for creating spans.
+ pricing_info: Information used for calculating the cost of Crawl4AI usage.
+ trace_content: Flag indicating whether to trace the actual content.
+
+ Returns:
+ A function that wraps the chat completions method to add telemetry.
+ """
+
+ def wrapper(wrapped, instance, args, kwargs):
+ """
+ Wraps the 'chat.completions' API call to add telemetry.
+
+ This collects metrics such as execution time, cost, and token usage, and handles errors
+ gracefully, adding details to the trace for observability.
+
+ Args:
+ wrapped: The original 'chat.completions' method to be wrapped.
+ instance: The instance of the class where the original method is defined.
+ args: Positional arguments for the 'chat.completions' method.
+ kwargs: Keyword arguments for the 'chat.completions' method.
+
+ Returns:
+ The response from the original 'chat.completions' method.
+ """
+
+ # pylint: disable=line-too-long
+ with tracer.start_as_current_span(gen_ai_endpoint, kind= SpanKind.CLIENT) as span:
+ response = wrapped(*args, **kwargs)
+
+ try:
+ # Set base span attribues
+ span.set_attribute(TELEMETRY_SDK_NAME, "openlit")
+ span.set_attribute(SemanticConvetion.GEN_AI_SYSTEM,
+ SemanticConvetion.GEN_AI_SYSTEM_CRAWL4AI)
+ span.set_attribute(SemanticConvetion.GEN_AI_TYPE,
+ SemanticConvetion.GEN_AI_TYPE_AGENT)
+ span.set_attribute(SemanticConvetion.GEN_AI_ENDPOINT,
+ gen_ai_endpoint)
+ span.set_attribute(SemanticConvetion.GEN_AI_APPLICATION_NAME,
+ application_name)
+ span.set_attribute(SemanticConvetion.GEN_AI_ENVIRONMENT,
+ environment)
+ span.set_attribute(SemanticConvetion.GEN_AI_AGENT_TYPE,
+ "browser")
+ span.set_attribute(SemanticConvetion.GEN_AI_AGENT_ENABLE_CACHE, not kwargs.get("disable_cache", False))
+
+ url = kwargs.get("url") if "url" in kwargs else str(args[0]) if args else None
+ if url is not None:
+ span.set_attribute(SemanticConvetion.GEN_AI_AGENT_BROWSE_URL, url)
+
+ extraction_strategy = kwargs.get("extraction_strategy", "NoExtractionStrategy")
+ extraction_name = extraction_strategy.name if hasattr(extraction_strategy, 'name') else extraction_strategy
+
+ span.set_attribute(SemanticConvetion.GEN_AI_AGENT_STRATEGY, extraction_name)
+
+ if extraction_name == "LLMExtractionStrategy" and hasattr(extraction_strategy, 'provider'):
+ _, llm_model = extraction_strategy.provider.split('/')
+ span.set_attribute(SemanticConvetion.GEN_AI_REQUEST_MODEL, llm_model)
+
+ elif extraction_name == "CosineStrategy":
+ span.set_attribute(SemanticConvetion.GEN_AI_REQUEST_MODEL, "all-MiniLM-L6-v2")
+
+ elif extraction_name == "JsonCssExtractionStrategy" and hasattr(extraction_strategy, 'schema'):
+ span.set_attribute(SemanticConvetion.GEN_AI_AGENT_SCHEMA, str(extraction_strategy.schema))
+
+ span.set_status(Status(StatusCode.OK))
+
+ # Return original response
+ return response
+
+ except Exception as e:
+ handle_exception(span, e)
+ logger.error("Error in trace creation: %s", e)
+
+ # Return original response
+ return response
+
+ return wrapper
diff --git a/sdk/python/src/openlit/instrumentation/dynamiq/dynamiq.py b/sdk/python/src/openlit/instrumentation/dynamiq/dynamiq.py
index 4b3fe47f..62ac21f8 100644
--- a/sdk/python/src/openlit/instrumentation/dynamiq/dynamiq.py
+++ b/sdk/python/src/openlit/instrumentation/dynamiq/dynamiq.py
@@ -64,6 +64,8 @@ def dynamiq_wrap(gen_ai_endpoint, version, environment, application_name,
gen_ai_endpoint)
span.set_attribute(SemanticConvetion.GEN_AI_APPLICATION_NAME,
application_name)
+ span.set_attribute(SemanticConvetion.GEN_AI_ENVIRONMENT,
+ environment)
if gen_ai_endpoint == "dynamiq.agent_run":
span.set_attribute(SemanticConvetion.GEN_AI_AGENT_ID,
diff --git a/sdk/python/src/openlit/semcov/__init__.py b/sdk/python/src/openlit/semcov/__init__.py
index f6b3dc91..e70945c9 100644
--- a/sdk/python/src/openlit/semcov/__init__.py
+++ b/sdk/python/src/openlit/semcov/__init__.py
@@ -131,6 +131,7 @@ class SemanticConvetion:
GEN_AI_SYSTEM_AI21 = "ai21"
GEN_AI_SYSTEM_CONTROLFLOW = "controlflow"
GEN_AI_SYSTEM_ASSEMBLYAI = "assemblyai"
+ GEN_AI_SYSTEM_CRAWL4AI = "crawl4ai"
# Vector DB
DB_OPERATION_API_ENDPOINT = "db.operation.api_endpoint"
@@ -204,10 +205,12 @@ class SemanticConvetion:
GEN_AI_AGENT_EXPECTED_OUTPUT = "gen_ai.agent.expected_output"
GEN_AI_AGENT_ACTUAL_OUTPUT = "gen_ai.agent.actual_output"
GEN_AI_AGENT_HUMAN_INPUT = "gen_ai.agent.human_input"
+ GEN_AI_AGENT_SCHEMA = "gen_ai.agent.schema"
GEN_AI_AGENT_TASK_ASSOCIATION = "gen_ai.agent.task_associations"
GEN_AI_AGENT_BROWSE_URL = "gen_ai.agent.browse_url"
GEN_AI_AGENT_STEP_COUNT = "gen_ai.agent.step_count"
GEN_AI_AGENT_RESPONSE_TIME = "gen_ai.agent.response_time"
+ GEN_AI_AGENT_STRATEGY = "gen_ai.agent.strategy"
# GPU
GPU_INDEX = "gpu.index"