Skip to content

Commit 82472bf

Browse files
authored
Merge branch 'main' into update-quickstarts-with-rust
2 parents dad8e2f + 07299e4 commit 82472bf

2 files changed

Lines changed: 16 additions & 42 deletions

File tree

docs/cloud/audit-logs.mdx

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -83,34 +83,24 @@ Instead, explore the [Export](/cloud/export) feature, which does let you send cl
8383

8484
:::info DEPRECATION NOTICE
8585

86-
The following fields are deprecated and are planned for removal on or after April 1 2026.
87-
88-
- `user_email`. This field is duplicated by `principal.name` for principals of type `user`. Other principal types do not have associated emails.
89-
- `level`. This field is duplicated by `status`.
90-
- `caller_ip_address`. This field is replaced by `x_forwarded_for`.
91-
- `details`. This field is replaced by `raw_details` that includes request details.
92-
- `category`. This field is no longer used.
86+
The `request_id` field is deprecated and is planned for removal on or after November 1 2026. Use `async_operation_id` instead.
9387

9488
:::
9589

9690
Audit Logs use the following JSON format:
9791

9892
```json
9993
{
100-
"operation": // Operation that was performed
101-
"principal": // Information about who initiated the operation
102-
"details": // DEPRECATED, see raw_details
103-
"raw_details": // details about the request
104-
"user_email": // DEPRECATED, use principal.user where applicable
105-
"x_forwarded_for": // the IP address making the call
106-
"caller_ip_address": // DEPRECATED, use x_forwarded_for
107-
"category": // DEPRECATED, no longer used
108-
"emit_time": // Time the operation was recorded
109-
"level": // DEPRECATED, use status
110-
"log_id": // Unique ID of the log entry
111-
"request_id": // Optional async request id set by the user when sending a request
112-
"status": // Status, such as OK or ERROR
113-
"version": // Version of the log entry
94+
"operation": // Operation that was performed
95+
"principal": // Information about who initiated the operation
96+
"raw_details": // Details about the request
97+
"x_forwarded_for": // The IP address(es) making the call
98+
"emit_time": // Time the operation was recorded
99+
"log_id": // Unique ID of the log entry
100+
"async_operation_id": // Optional async operation id set by the user when sending a request
101+
"request_id": // DEPRECATED, use async_operation_id
102+
"status": // Status, such as OK or ERROR
103+
"version": // Version of the log entry
114104
}
115105
```
116106

docs/cloud/worker-health.mdx

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -400,33 +400,17 @@ Set it to a negative value to disable heartbeating.
400400
#### Enable host resource reporting
401401

402402
By default, the Go SDK reports `0` for CPU and memory usage in Worker heartbeats.
403-
To enable host resource reporting, provide a `SysInfoProvider` when creating your Worker.
404-
You must use a resource based tuner to enable host resource reporting.
405-
406-
The SDK includes a [gopsutil](https://github.com/shirou/gopsutil)-based implementation via the [sysinfo](https://pkg.go.dev/go.temporal.io/sdk/contrib/sysinfo) library that supports cgroup metrics in containerized Linux environments:
403+
Set `SysInfoProvider` on [`worker.Options`](https://pkg.go.dev/go.temporal.io/sdk/worker#Options) to enable host resource reporting.
404+
Host resource reporting is not included in the core SDK module. Add the [sysinfo](https://pkg.go.dev/go.temporal.io/sdk/contrib/sysinfo) contrib package to your imports - it provides a [gopsutil](https://github.com/shirou/gopsutil)-based implementation that supports cgroup metrics in containerized Linux environments:
407405

408406
```go
409407
import (
410-
"log"
411-
412-
"go.temporal.io/sdk/client"
413-
"go.temporal.io/sdk/contrib/envconfig"
414-
"go.temporal.io/sdk/contrib/sysinfo"
415-
"go.temporal.io/sdk/worker"
408+
"go.temporal.io/sdk/contrib/sysinfo"
409+
"go.temporal.io/sdk/worker"
416410
)
417411

418-
c, err := client.Dial(envconfig.MustLoadDefaultClientOptions())
419-
if err != nil {
420-
log.Fatalln("Unable to create client", err)
421-
}
422-
defer c.Close()
423-
tuner, err := worker.NewResourceBasedTuner(worker.ResourceBasedTunerOptions{
424-
TargetMem: 0.8,
425-
TargetCpu: 0.9,
426-
InfoSupplier: sysinfo.SysInfoProvider(),
427-
})
428412
w := worker.New(c, "my-task-queue", worker.Options{
429-
Tuner: tuner,
413+
SysInfoProvider: sysinfo.SysInfoProvider(),
430414
})
431415
```
432416

0 commit comments

Comments
 (0)