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
Review fixes
  • Loading branch information
simeongelovski committed Apr 8, 2026
commit 06b0bd8da459c1ae12b54ee15944b206319adc76
8 changes: 6 additions & 2 deletions src/sap_cloud_sdk/core/auditlog_ng/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@
ValidationError,
)

from sap_cloud_sdk.core.telemetry import Module

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

@record_metrics(Module.AUDITLOG_NG, Operation.AUDITLOG_CREATE_CLIENT)
def create_client(
*,
config: Optional[AuditLogNGConfig] = None,
Expand Down
4 changes: 2 additions & 2 deletions src/sap_cloud_sdk/core/auditlog_ng/user-guide.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Using the `auditlog_ng` Client in an Agent

This guide explains how to integrate the SAP Audit Log NG OTLP client [`client.py`](client.py) into a Python-based agent.
This guide explains how to integrate the SAP Audit Log NG OTLP client into a Python-based agent.

---

## Overview

The [`client.py`](client.py) client sends audit log events as OpenTelemetry (OTLP) LogRecords over gRPC to the SAP Audit Log Service. It supports:
The Auditlog NG client sends audit log events as OpenTelemetry (OTLP) LogRecords over gRPC to the SAP Audit Log Service. It supports:

- **mTLS** (mutual TLS with client certificates)
- **Insecure** mode (local testing / no-auth)
Expand Down
1 change: 1 addition & 0 deletions src/sap_cloud_sdk/core/telemetry/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Module(str, Enum):

AICORE = "aicore"
AUDITLOG = "auditlog"
AUDITLOG_NG = "auditlog_ng"
DESTINATION = "destination"
OBJECTSTORE = "objectstore"

Expand Down
1 change: 1 addition & 0 deletions src/sap_cloud_sdk/core/telemetry/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Operation(str, Enum):
# Audit Log Operations
AUDITLOG_LOG = "log"
AUDITLOG_LOG_BATCH = "log_batch"
AUDITLOG_CREATE_CLIENT = "create_client"

# Destination Operations
DESTINATION_GET_INSTANCE_DESTINATION = "get_instance_destination"
Expand Down
Loading