Skip to content

Commit

Permalink
python3Packages.opentelemetry-instrumentation-logging: init at 0.47b0
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Oct 13, 2024
1 parent ecf069c commit 7ef1b9d
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 15 deletions.
33 changes: 18 additions & 15 deletions pkgs/by-name/ba/baserow/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ python.pkgs.buildPythonApplication rec {
"test_email_notifications_are_created_correctly"
"test_remove_unused_personal_views"
"test_files_are_served_by_base_file_storage_by_default"
"test_files_can_be_served_by_the_backend"
"test_secure_file_serve_requires_license_to_download_files"
"test_files_can_be_downloaded_by_the_backend_with_valid_license"
# AttributeError: 'called_once' is not a valid assertion. Use a spec for the mock if 'called_once' is meant to be an attribute
"test_notification_creation_on_creating_row_comment_mention"
"test_notify_only_new_mentions_when_updating_a_comment"
Expand All @@ -235,21 +238,21 @@ python.pkgs.buildPythonApplication rec {
"test_audit_log_entries_are_translated_in_the_user_language"
];

disabledTestPaths = [
# Disable enterprise & premium tests
# because they require a database.
"../enterprise/backend/tests"
"../enterprise/backend/src"
"../premium/backend/tests"
"../premium/backend/src"
# Disable database related tests
"tests/baserow/contrib/database"
"tests/baserow/api"
"tests/baserow/core"
"tests/baserow/ws"
# Requires an installed app or something, investigate later
"tests/baserow/contrib/builder/"
];
#disabledTestPaths = [
# # Disable enterprise & premium tests
# # because they require a database.
# "../enterprise/backend/tests"
# "../enterprise/backend/src"
# "../premium/backend/tests"
# "../premium/backend/src"
# # Disable database related tests
# "tests/baserow/contrib/database"
# "tests/baserow/api"
# "tests/baserow/core"
# "tests/baserow/ws"
# # Requires an installed app or something, investigate later
# "tests/baserow/contrib/builder/"
#];

pythonImportsCheck = [
"baserow"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
lib,
buildPythonPackage,
hatchling,
opentelemetry-api,
opentelemetry-instrumentation,
opentelemetry-test-utils,
}:

buildPythonPackage rec {
inherit (opentelemetry-instrumentation) version src;
pname = "opentelemetry-instrumentation-logging";
pyproject = true;

sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-logging";

build-system = [ hatchling ];

dependencies = [
opentelemetry-api
opentelemetry-instrumentation
];

nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "opentelemetry.instrumentation.logging" ];

meta = opentelemetry-instrumentation.meta // {
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-logging";
description = "Logging instrumentation for OpenTelemetry";
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9415,6 +9415,8 @@ self: super: with self; {

opentelemetry-instrumentation-grpc = callPackage ../development/python-modules/opentelemetry-instrumentation-grpc { };

opentelemetry-instrumentation-logging = callPackage ../development/python-modules/opentelemetry-instrumentation-logging { };

opentelemetry-instrumentation-psycopg2 = callPackage ../development/python-modules/opentelemetry-instrumentation-psycopg2 { };

opentelemetry-instrumentation-requests = callPackage ../development/python-modules/opentelemetry-instrumentation-requests { };
Expand Down

0 comments on commit 7ef1b9d

Please sign in to comment.