Release Notes¶
v0.49.0 (2024-08-05)¶
- Add
logfire.instrument_mysql()
by @aditkumar72 in https://github.com/pydantic/logfire/pull/341 -
在通过 @alexmojaki 记录异常时设置 OTEL 状态描述,位于 https://github.com/pydantic/logfire/pull/348
-
通过 @alexmojaki 在 https://github.com/pydantic/logfire/pull/347 将 UpDownCounters 切换为累积聚合时效性
-
关于内部错误的更多信息由 @alexmojaki 记录在 https://github.com/pydantic/logfire/pull/346 中
v0.48.1 (2024-07-29)¶
- Handle newer opentelemetry versions by @alexmojaki in https://github.com/pydantic/logfire/pull/337
-
对 loguru 消息不匹配的更宽松处理以及由 @alexmojaki 提供的更好的警告,详见 https://github.com/pydantic/logfire/pull/338
-
由 @Kludex 在 https://github.com/pydantic/logfire/pull/342 中为 HTTPX 和 AsyncPG 添加更好的类型提示
- Handle
setuptools
changingsys.path
for importingpackaging.version
by @alexmojaki in https://github.com/pydantic/logfire/pull/344
v0.48.0 (2024-07-24)¶
- Add
instrument_celery
method by @Kludex in https://github.com/pydantic/logfire/pull/322 capture_headers
by @alexmojaki in https://github.com/pydantic/logfire/pull/318- Handle message formatting errors by @alexmojaki in https://github.com/pydantic/logfire/pull/329
- Handle logging
None
withloguru
by @alexmojaki in https://github.com/pydantic/logfire/pull/331
v0.47.0 (2024-07-20)¶
- Fix recursive logging from OTEL's
BatchSpanProcessor
by @alexmojaki in https://github.com/pydantic/logfire/pull/306 -
由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/307 中将 sqlalchemy 的“连接”跨度设置为调试级别
-
通过 @Kludex 在 https://github.com/pydantic/logfire/pull/320 中为工具方法添加类型提示
-
由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/316 中处理 Anthropic 的旧版本
-
更新依赖项,由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/323 中处理 importlib 中的更改
-
总结 @alexmojaki 在 https://github.com/pydantic/logfire/pull/308 中消息里的 db.statement
-
由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/312 中处理和测试其他 OpenAI/Anthropic 客户端方法
v0.46.1 (2024-07-05)¶
-
由 @Kludex 在 https://github.com/pydantic/logfire/pull/303 中修复
logfire-api
的发布流程
v0.46.0 (2024-07-05)¶
- Add
logfire-api
by @Kludex in https://github.com/pydantic/logfire/pull/268 - Use exponential histogram buckets by @alexmojaki in https://github.com/pydantic/logfire/pull/282
-
添加属性,由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/278 中记录清理后的值的详细信息
-
确保在 AWS Lambda 调用的末尾有
force_flush
,由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/296 中提出
v0.45.1 (2024-07-01)¶
- Fix ignore no config warning message by @ba1mn in https://github.com/pydantic/logfire/pull/292
-
确保
StaticFiles
不会破坏instrument_fastapi
(由 @alexmojaki 于 https://github.com/pydantic/logfire/pull/294 )
v0.45.0 (2024-06-29)¶
-
在 https://github.com/pydantic/logfire/pull/283 中,将
scrubbing: ScrubbingOptions | False
参数添加到logfire.configure
,将scrubbing_patterns
和scrubbing_callback
替换为 @alexmojaki -
由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/286 中修复并测试未映射的 SQLModels
- Optimize
collect_package_info
by @alexmojaki in https://github.com/pydantic/logfire/pull/285
v0.44.0 (2024-06-26)¶
-
在 https://github.com/pydantic/logfire/pull/277 中,由 @alexmojaki 防止
install_auto_tracing
中的“迭代期间字典大小更改”错误 -
suppress_instrumentation
当 @alexmojaki 在 https://github.com/pydantic/logfire/pull/279 中重试导出时 - Log async stack in
log_slow_async_callbacks
by @alexmojaki in https://github.com/pydantic/logfire/pull/280
v0.43.0 (2024-06-24)¶
-
重大变更:由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/261 中删除
install_auto_tracing
的modules
参数的默认值 -
重大变更:在单独的线程中检查 logfire 令牌是否有效,因此
logfire.configure
不会阻塞启动,并且对于无效令牌不再引发异常,由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/274 中提出 - Remove
logfire_api_session
parameter fromlogfire.configure
by @alexmojaki in https://github.com/pydantic/logfire/pull/272 -
如果状态码为错误,则将日志级别默认为错误,反之亦然,由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/269 中提出
- Avoid importing
gitpython
by @alexmojaki in https://github.com/pydantic/logfire/pull/260 -
仅删除
logfire clean
上由 @Kludex 在 https://github.com/pydantic/logfire/pull/267 中的文件 -
错误修复:由 @sneakyPad 在 https://github.com/pydantic/logfire/pull/259 中将 FastAPI 子应用程序的请求的参数记录下来
-
通过 @alexmojaki 在 https://github.com/pydantic/logfire/pull/271 修复消息中不存在的查询参数
-
在 https://github.com/pydantic/logfire/pull/273 中,由 @alexmojaki 将“Redacted due to...”中的“Redacted”替换为“Scrubbed”
v0.42.0 (2024-06-11)¶
-
在 https://github.com/pydantic/logfire/pull/252 中,由 @alexmojaki 改进了导出时请求错误的处理。
-
ignore_no_config
设置由 @deepakdinesh1123 添加到pyproject.toml
于 https://github.com/pydantic/logfire/pull/254 -
通过 @alexmojaki 在 https://github.com/pydantic/logfire/pull/256 中使
logfire whoami
尊重LOGFIRE_TOKEN
环境变量
v0.41.0 (2024-06-06)¶
- Fix backfill command by @alexmojaki in https://github.com/pydantic/logfire/pull/243
-
由 @willbakst 在 https://github.com/pydantic/logfire/pull/249 中更新 Anthropic 以使用不再处于测试阶段的工具
-
Anthropic 仪器设备现在需要
anthropic>=0.27.0
-
v0.40.0 (2024-06-04)¶
-
重大变更:
logfire.configure()
的processors
参数已被additional_span_processors
取代。传递processors
将引发错误。与processors
不同,将additional_span_processors
设置为空序列不会禁用默认的跨度处理器,该处理器会导出到 Logfire。要禁用,请传递send_to_logfire=False
。同样,metric_readers
已被additional_metric_reader
取代。由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/233 中提出 -
当 @deepakdinesh1123 在 https://github.com/pydantic/logfire/pull/231 中未安装 opentelemetry.instrumentation.django 时改进引发的错误
- Handle internal errors by @alexmojaki in https://github.com/pydantic/logfire/pull/232
v0.39.0 (2024-06-03)¶
在 https://github.com/pydantic/logfire/pull/207 中添加新方法以更轻松地集成:
instrument_flask
instrument_starlette
instrument_aiohttp_client
instrument_sqlalchemy
instrument_pymongo
instrument_redis
v0.38.0 (2024-05-31)¶
重大变更:调用 logfire.info
、 logfire.error
、 logfire.span
等,如果尚未进行配置,将不再自动配置 Logfire。相反,它将发出警告且不记录任何内容。用户必须在实际希望开始记录之前调用 logfire.configure()
,即使他们未向 configure
传递任何参数且所有配置均通过环境变量完成。在调用 configure
之前使用诸如 logfire.instrument_fastapi()
之类的集成也将发出警告,但仍会设置检测工具,不过在调用 configure
之前不会记录任何内容。
v0.37.0 (2024-05-29)¶
-
添加
logfire.suppress_instrumentation
上下文管理器,在 https://github.com/pydantic/logfire/pull/197 中,由 @jlondonobo 导出时屏蔽urllib3
调试日志
v0.36.1 (2024-05-27)¶
- Fix structlog import by @alexmojaki in https://github.com/pydantic/logfire/pull/217
v0.36.0 (2024-05-27)¶
-
允许通过 @alexmojaki 在 https://github.com/pydantic/logfire/pull/205 中通过 instrument_fastapi 传递 OTEL kwargs
-
由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/214 中重试连接错误
v0.35.0 (2024-05-21)¶
- Add
logfire.instrument_requests()
by @tlpinney in https://github.com/pydantic/logfire/pull/196 - Add
logfire.instrument_httpx()
by @tlpinney in https://github.com/pydantic/logfire/pull/198 - Add
logfire.instrument_django()
by @inspirsmith in https://github.com/pydantic/logfire/pull/200
v0.34.0 (2024-05-21)¶
-
允许由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/191 中检测 OpenAI/Anthropic 客户端类或模块
v0.33.0 (2024-05-18)¶
-
通过 @alexmojaki 在 https://github.com/pydantic/logfire/pull/179 修复了非字符串消息的日志集成
-
由 @willbakst 进行的人工操作,位于 https://github.com/pydantic/logfire/pull/181
v0.32.1 (2024-05-15)¶
-
在 https://github.com/pydantic/logfire/pull/180 中,由 @alexmojaki 将“执行”版本添加到“logfire 信息”输出中
-
不要在 Pydantic 的 V1 中使用
include_url
,由 @Kludex 在 https://github.com/pydantic/logfire/pull/184 中提出
v0.32.0 (2024-05-14)¶
-
不要从 @alexmojaki 在 https://github.com/pydantic/logfire/pull/173 中的 OpenAI 集成中删除跨度
-
将 FastAPI 参数日志转换为跨度,默认情况下不要由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/164 中设置为调试
-
当 Pydantic <2.5.0 上启用 Pydantic 插件时抛出异常,由 @bossenti 在 https://github.com/pydantic/logfire/pull/160 中提出
-
在 https://github.com/pydantic/logfire/pull/177 中,@Kludex 表示
logfire projects use
命令不需要项目名称
v0.31.0 (2024-05-13)¶
-
通过 @Kludex 在 https://github.com/pydantic/logfire/pull/143 改进
opentelemetry-instrumentation-fastapi
缺失时的错误 -
在 Pytest 下运行时,由 @Kludex 在 https://github.com/pydantic/logfire/pull/154 中将
send_to_logfire
设置为False
- Add
logfire.metric_gauge()
by @Kludex in https://github.com/pydantic/logfire/pull/153 -
在 https://github.com/pydantic/logfire/pull/137 中,由 @Kludex 用
stack_info
替代stack_offset
- Fix JSON encoding/schema of pydantic v1 models by @alexmojaki in https://github.com/pydantic/logfire/pull/163
- Handle intermediate logging/loguru levels by @alexmojaki in https://github.com/pydantic/logfire/pull/162
-
由 @Kludex 在 https://github.com/pydantic/logfire/pull/168 中在控制台添加异常
- f-string magic by @alexmojaki in https://github.com/pydantic/logfire/pull/151
v0.30.0 (2024-05-06)¶
-
在导出器关闭并删除之前,当进程关闭时关闭跨度,由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/108 中提出
-
在 https://github.com/pydantic/logfire/pull/115 中,由 @Elkiwa 在 OTEL_PACKAGES 和可选依赖项中添加
psycopg
-
[PYD-877] 在末尾记录 OpenAI 流式响应,而非在可能无法完成的生成器中打开跨度并附加上下文,由 @alexmojaki 于 https://github.com/pydantic/logfire/pull/107 中提出
-
由 @Kludex 在 https://github.com/pydantic/logfire/pull/129 中将最小打字扩展版本提高
-
在 https://github.com/pydantic/logfire/pull/127 中,由 @Kludex 添加关于在用户未通过身份验证时创建写入令牌的注释
-
通过 @alexmojaki 在 https://github.com/pydantic/logfire/pull/130 使“logfire inspect”打印的 pip install 命令易于复制
v0.29.0 (2024-05-03)¶
-
在 https://github.com/pydantic/logfire/pull/94 中,由 @Kludex 为 ASGI 发送和接收消息在
on_start
上添加日志级别 -
@dmontagu 在 https://github.com/pydantic/logfire/pull/100 中支持将数据类类型作为参数
-
由 @Kludex 在 https://github.com/pydantic/logfire/pull/95 中将 min_log_level 添加到控制台选项
-
通过 @Kludex 在 https://github.com/pydantic/logfire/pull/104 改进 OpenAI 集成
v0.28.3 (2024-05-02)¶
- Fix pydantic plugin for cloudpickle by @alexmojaki in https://github.com/pydantic/logfire/pull/86
- Handle unloaded SQLAlchemy fields in JSON schema by @alexmojaki in https://github.com/pydantic/logfire/pull/92
v0.28.2 (2024-05-02)¶
- Fix OpenAI streaming empty chunk error by @hramezani in https://github.com/pydantic/logfire/pull/69
-
通过 @syniex 在 https://github.com/pydantic/logfire/pull/51 中更新 pyproject.toml,以在 sdist 构建目标中包含 logfire
-
在 https://github.com/pydantic/logfire/pull/75 中,@Kludex 建议在
scikit-learn
上使用opentelemetry-instrumentation-sklearn
而不是sklearn
v0.28.1 (2024-05-01)¶
- Don't scrub 'author' by @alexmojaki in https://github.com/pydantic/logfire/pull/55
-
在 https://github.com/pydantic/logfire/pull/67 中,由 @Kludex 检查对象在数据类之前是否为 SQLAlchemy
v0.28.0 (2024-04-30)¶
- Add
logfire.instrument_asyncpg()
by @alexmojaki in https://github.com/pydantic/logfire/pull/44
v0.27.0 (2024-04-30)¶
新存储库的首次发布!
- Update README by @Kludex in https://github.com/pydantic/logfire/pull/2
- Add linter & pipeline by @Kludex in https://github.com/pydantic/logfire/pull/1
-
使用 Python 3.8 进行管道处理,由 @Kludex 在 https://github.com/pydantic/logfire/pull/3 中完成
-
在 https://github.com/pydantic/logfire/pull/5 中使用 @Kludex 的 Rye 而非 Poetry
-
由 @Kludex 在 https://github.com/pydantic/logfire/pull/6 中添加测试套件
- Add custom PyPI by @Kludex in https://github.com/pydantic/logfire/pull/7
-
由 @Kludex 在 https://github.com/pydantic/logfire/pull/8 中添加发布任务
- Install rye on release job by @Kludex in https://github.com/pydantic/logfire/pull/9
-
通过 @Kludex 在 https://github.com/pydantic/logfire/pull/10 中添加最新的单体仓库更改
- Add Python 3.12 to CI by @hramezani in https://github.com/pydantic/logfire/pull/11
-
通过 @samuelcolvin 在 https://github.com/pydantic/logfire/pull/12 改进自述文件和相关琐事
-
CF 页面文档由 @samuelcolvin 在 https://github.com/pydantic/logfire/pull/14 中构建
- Create alert docs by @Kludex in https://github.com/pydantic/logfire/pull/15
-
通过 @samuelcolvin 在 https://github.com/pydantic/logfire/pull/16 改进自述文件和贡献指南
- Add classifiers by @hramezani in https://github.com/pydantic/logfire/pull/17
-
告诉 rye 使用 @samuelcolvin 在 https://github.com/pydantic/logfire/pull/19 中的 uv
-
由 @samuelcolvin 为
instrument_openai
添加文档,位于 https://github.com/pydantic/logfire/pull/18 - Live view docs by @samuelcolvin in https://github.com/pydantic/logfire/pull/20
-
添加
logfire info
并通过 @samuelcolvin 在 https://github.com/pydantic/logfire/pull/22 中发布模板 -
在帮助页面添加 GitHub 讨论,删除“登录”,由 @samuelcolvin 在 https://github.com/pydantic/logfire/pull/23 中显示源链接
-
由 @samuelcolvin 在 https://github.com/pydantic/logfire/pull/24 中设置的覆盖范围
-
通过 @samuelcolvin 在 https://github.com/pydantic/logfire/pull/25 提高覆盖范围
- Write token docs (#2244) by @Kludex in https://github.com/pydantic/logfire/pull/27
-
由 @davidhewitt 在 https://github.com/pydantic/logfire/pull/26 中添加直接连接文档
- Add dashboard docs by @Kludex in https://github.com/pydantic/logfire/pull/28
- Add SQL Explore docs by @Kludex in https://github.com/pydantic/logfire/pull/29
-
通过 @Kludex 在 https://github.com/pydantic/logfire/pull/31 使
psycopg2
文档能够直接运行 -
通过 @Kludex 在 https://github.com/pydantic/logfire/pull/33 中将黑麦添加到安装中
- Apply Logfire brand colors by @Kludex in https://github.com/pydantic/logfire/pull/32
-
logfire.instrument_psycopg()
函数由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/30 中提供 - Handle recursive logging from OTEL by @alexmojaki in https://github.com/pydantic/logfire/pull/35
- Improve MongoDB docs by @Kludex in https://github.com/pydantic/logfire/pull/34
- Improve colors by @dmontagu in https://github.com/pydantic/logfire/pull/38
-
由 @dmontagu 在 https://github.com/pydantic/logfire/pull/39 中将文件重命名,使其不带有数字前缀
-
在 JSON 编码和模式中处理循环引用,由 @alexmojaki 于 https://github.com/pydantic/logfire/pull/37 完成
-
确保
logfire.testing
不依赖于 pydantic 和由 @alexmojaki 在 https://github.com/pydantic/logfire/pull/40 中的 eval_type_backport -
允许在通过 @alexmojaki 在 https://github.com/pydantic/logfire/pull/36 中调用 logfire.configure 之前使用带有已定义模型的 pydantic 插件
本文总阅读量次