python3Packages.logfire: 4.6.0 -> 4.37.0 (#541808)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
callPackage,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
fetchpatch2,
|
||||
|
||||
# build-system
|
||||
hatchling,
|
||||
@@ -25,10 +26,13 @@
|
||||
opentelemetry-instrumentation-fastapi,
|
||||
opentelemetry-instrumentation-flask,
|
||||
opentelemetry-instrumentation-httpx,
|
||||
opentelemetry-instrumentation-psycopg,
|
||||
opentelemetry-instrumentation-psycopg2,
|
||||
opentelemetry-instrumentation-redis,
|
||||
opentelemetry-instrumentation-requests,
|
||||
opentelemetry-instrumentation-sqlalchemy,
|
||||
opentelemetry-instrumentation-sqlite3,
|
||||
opentelemetry-instrumentation-system-metrics,
|
||||
opentelemetry-instrumentation-wsgi,
|
||||
packaging,
|
||||
|
||||
@@ -40,12 +44,12 @@
|
||||
dirty-equals,
|
||||
google-genai,
|
||||
inline-snapshot,
|
||||
litellm,
|
||||
logfire-api,
|
||||
loguru,
|
||||
mysql-connector-python,
|
||||
openai-agents,
|
||||
pandas,
|
||||
psycopg,
|
||||
pymongo,
|
||||
pymysql,
|
||||
pytest-django,
|
||||
@@ -61,16 +65,28 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "logfire";
|
||||
version = "4.6.0";
|
||||
version = "4.37.0";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pydantic";
|
||||
repo = "logfire";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-dAkT3xh0RsGTnW7Mqml2wV16VHJGUUkjjxiFLg9bUKc=";
|
||||
hash = "sha256-o6qtMiwXcfUuYkUrM+Iy6WhtwBOLK3q/nqPDC5QMmg0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/pydantic/logfire/pull/2042
|
||||
(fetchpatch2 {
|
||||
url = "https://github.com/pydantic/logfire/commit/c7ff8beec3a674a2b096fcd9395159723de4cc67.patch";
|
||||
hash = "sha256-HdPT1cYOUiyjJBUYC5yoVRjC+gWyCMvo1MpOSL32lPM=";
|
||||
excludes = [
|
||||
"uv.lock"
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
@@ -106,7 +122,7 @@ buildPythonPackage (finalAttrs: {
|
||||
# litellm = [ opentelemetry-instrumentation-litellm ];
|
||||
# mysql = [ opentelemetry-instrumentation-mysql ];
|
||||
psycopg = [
|
||||
# opentelemetry-instrumentation-psycopg
|
||||
opentelemetry-instrumentation-psycopg
|
||||
packaging
|
||||
];
|
||||
psycopg2 = [
|
||||
@@ -117,9 +133,9 @@ buildPythonPackage (finalAttrs: {
|
||||
redis = [ opentelemetry-instrumentation-redis ];
|
||||
requests = [ opentelemetry-instrumentation-requests ];
|
||||
sqlalchemy = [ opentelemetry-instrumentation-sqlalchemy ];
|
||||
# sqlite3 = [ opentelemetry-instrumentation-sqlite3 ];
|
||||
sqlite3 = [ opentelemetry-instrumentation-sqlite3 ];
|
||||
# starlette = [ opentelemetry-instrumentation-starlette ];
|
||||
# system-metrics = [ opentelemetry-instrumentation-system-metrics ];
|
||||
system-metrics = [ opentelemetry-instrumentation-system-metrics ];
|
||||
wsgi = [ opentelemetry-instrumentation-wsgi ];
|
||||
};
|
||||
|
||||
@@ -136,12 +152,12 @@ buildPythonPackage (finalAttrs: {
|
||||
dirty-equals
|
||||
google-genai
|
||||
inline-snapshot
|
||||
litellm
|
||||
logfire-api
|
||||
loguru
|
||||
mysql-connector-python
|
||||
openai-agents
|
||||
pandas
|
||||
psycopg
|
||||
pymongo
|
||||
pymysql
|
||||
pytest-django
|
||||
@@ -163,15 +179,8 @@ buildPythonPackage (finalAttrs: {
|
||||
"tests/otel_integrations/test_aws_lambda.py"
|
||||
"tests/otel_integrations/test_google_genai.py"
|
||||
"tests/otel_integrations/test_mysql.py"
|
||||
"tests/otel_integrations/test_psycopg.py"
|
||||
"tests/otel_integrations/test_pymongo.py"
|
||||
"tests/otel_integrations/test_sqlalchemy.py"
|
||||
"tests/otel_integrations/test_sqlite3.py"
|
||||
"tests/otel_integrations/test_starlette.py"
|
||||
"tests/otel_integrations/test_system_metrics.py"
|
||||
|
||||
# No module named 'litellm'
|
||||
"tests/otel_integrations/test_litellm.py::test_litellm_instrumentation"
|
||||
|
||||
# No module named 'pydantic_ai'
|
||||
"tests/otel_integrations/test_pydantic_ai.py"
|
||||
|
||||
Reference in New Issue
Block a user