Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix formating
  • Loading branch information
simeongelovski committed Apr 9, 2026
commit 469e0f890075b8c5b82076c398f7e5c56ec033f5
10 changes: 4 additions & 6 deletions src/sap_cloud_sdk/core/auditlog_ng/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@
ValidationError,
)

from sap_cloud_sdk.core.telemetry import (
Module,
Operation,
record_metrics
)
from sap_cloud_sdk.core.telemetry import Module, Operation, record_metrics


@record_metrics(Module.AUDITLOG_NG, Operation.AUDITLOG_CREATE_CLIENT)
def create_client(
Expand All @@ -57,14 +54,15 @@ def create_client(
batch: bool = False,
compression: bool = True,
schema_url: str = SCHEMA_URL,
_telemetry_source: Optional[Module] = None
_telemetry_source: Optional[Module] = None,
) -> AuditClient:
"""Create an AuditClient for sending audit events over OTLP/gRPC.

Either pass a pre-built ``config`` **or** the individual keyword arguments.
When ``config`` is provided the remaining keyword arguments are ignored.

Args:
_telemetry_source: Internal parameter for telemetry. Not for external use.
config: Optional explicit configuration. If provided, all other
keyword arguments are ignored.
endpoint: OTLP gRPC endpoint (``host:port``).
Expand Down
4 changes: 3 additions & 1 deletion src/sap_cloud_sdk/core/auditlog_ng/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class AuditClient:
client.close()
"""

def __init__(self, config: AuditLogNGConfig, _telemetry_source: Optional[Module] = None) -> None:
def __init__(
self, config: AuditLogNGConfig, _telemetry_source: Optional[Module] = None
) -> None:
"""Initialize the audit client from a config object.

Args:
Expand Down
Loading