Skip to content

Commit 399f2f6

Browse files
authored
Update DBOS version, fix OTel docs and tests (#2939)
1 parent a2883d2 commit 399f2f6

File tree

5 files changed

+299
-238
lines changed

5 files changed

+299
-238
lines changed

docs/durable_execution/dbos.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -153,21 +153,6 @@ You can customize DBOS's retry policy using [step configuration](#step-configura
153153

154154
## Observability with Logfire
155155

156-
When using [Pydantic Logfire](../logfire.md), we **recommend disabling DBOS's built-in OpenTelemetry tracing**.
157-
DBOS automatically wraps workflow and step execution in spans, while Pydantic AI and Logfire already emit spans for the same function calls, model requests, and tool invocations. Without disabling DBOS tracing, these operations may appear twice in your trace tree.
156+
DBOS automatically generates OpenTelemetry spans for each workflow and step execution, and Pydantic AI emits spans for each agent run, model request, and tool invocation. You can send these spans to [Pydantic Logfire](../logfire.md) to get a full, end-to-end view of what's happening in your application.
158157

159-
To disable DBOS traces and logs, you can set `disable_otlp=True` in `DBOSConfig`. For example:
160-
161-
162-
```python {title="dbos_no_traces.py" test="skip"}
163-
from dbos import DBOS, DBOSConfig
164-
165-
dbos_config: DBOSConfig = {
166-
'name': 'pydantic_dbos_agent',
167-
'system_database_url': 'sqlite:///dbostest.sqlite',
168-
'disable_otlp': True # (1)!
169-
}
170-
DBOS(config=dbos_config)
171-
```
172-
173-
1. If `True`, disables OpenTelemetry tracing and logging for DBOS. Default is `False`.
158+
For more information about DBOS logging and tracing, please see the [DBOS docs](https://docs.dbos.dev/python/tutorials/logging-and-tracing) for details.

pydantic_ai_slim/pydantic_ai/providers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def model_profile(self, model_name: str) -> ModelProfile | None:
4848
return None # pragma: no cover
4949

5050
def __repr__(self) -> str:
51-
return f'{self.__class__.__name__}(name={self.name}, base_url={self.base_url})'
51+
return f'{self.__class__.__name__}(name={self.name}, base_url={self.base_url})' # pragma: lax no cover
5252

5353

5454
def infer_provider_class(provider: str) -> type[Provider[Any]]: # noqa: C901

pydantic_ai_slim/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ retries = ["tenacity>=8.2.3"]
9999
# Temporal
100100
temporal = ["temporalio==1.17.0"]
101101
# DBOS
102-
dbos = ["dbos>=1.13.0"]
102+
dbos = ["dbos>=1.14.0"]
103103

104104
[tool.hatch.metadata]
105105
allow-direct-references = true

0 commit comments

Comments
 (0)