Skip to content

Commit dbf4b07

Browse files
committed
Documentation & Readme updates
1 parent 2082c18 commit dbf4b07

3 files changed

Lines changed: 42 additions & 20 deletions

File tree

README.md

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -84,30 +84,19 @@ Pass `hubs=` to track model download provenance. Hubs are framework-agnostic and
8484
| `huggingface` | Downloads via `huggingface_hub` |
8585
| `torchhub` | Downloads via `torch.hub` |
8686

87-
For `torch` and `keras`, models are user-defined subclasses so there's no constructor to patch. Use `client.load()` to get load/unload tracking alongside inference:
88-
89-
```python
90-
model = client.load(MyModel)
91-
output = model(x) # tracked automatically
92-
```
93-
9487
For unsupported frameworks, see [Manual tracking](docs/manual-tracking.md).
9588

9689
## Configuration
9790

98-
| Parameter | Default | Env var | Description |
99-
|---|---|---|---|
100-
| `dsn` | - | `WILDEDGE_DSN` | `https://<secret>@ingest.wildedge.dev/<key>` |
101-
| `app_version` | `None` | - | Your app's version string |
102-
| `app_identity` | `<project_key>` | `WILDEDGE_APP_IDENTITY` | Namespace for offline persistence. Set per-app in multi-process workloads |
103-
| `debug` | `false` | `WILDEDGE_DEBUG` | Log events to console |
104-
| `batch_size` | `10` | - | Events per transmission (1-100) |
105-
| `flush_interval_sec` | `60` | - | Max seconds between flushes (1-3600) |
106-
| `max_queue_size` | `200` | - | In-memory buffer limit (10-10000) |
107-
| `enable_offline_persistence` | `true` | - | Persist unsent events to disk and replay on restart |
108-
| `max_event_age_sec` | `900` | - | Max age before dead-lettering |
109-
| `enable_dead_letter_persistence` | `false` | - | Persist dropped batches to disk |
110-
| `sampling_interval_s` | `30.0` | `WILDEDGE_SAMPLING_INTERVAL_S` | Seconds between background hardware snapshots. Set to `0` or `None` to disable |
91+
| Parameter | Default | Description |
92+
|---|---|---|
93+
| `dsn` | - | `https://<secret>@ingest.wildedge.dev/<key>` (or `WILDEDGE_DSN`) |
94+
| `app_version` | `None` | Your app's version string |
95+
| `app_identity` | `<project_key>` | Namespace for offline persistence. Set per-app in multi-process workloads (or `WILDEDGE_APP_IDENTITY`) |
96+
| `enable_offline_persistence` | `true` | Persist unsent events to disk and replay on restart |
97+
| `sampling_interval_s` | `30.0` | Seconds between background hardware snapshots. Set to `0` or `None` to disable (or `WILDEDGE_SAMPLING_INTERVAL_S`) |
98+
99+
For advanced options (batching, queue tuning, dead-letter storage), see [Configuration](docs/configuration.md).
111100

112101
## Privacy
113102

docs/configuration.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Configuration
2+
3+
Full reference for all `WildEdge` client parameters.
4+
5+
## Core
6+
7+
| Parameter | Default | Env var | Description |
8+
|---|---|---|---|
9+
| `dsn` | - | `WILDEDGE_DSN` | `https://<secret>@ingest.wildedge.dev/<key>` |
10+
| `app_version` | `None` | - | Your app's version string |
11+
| `app_identity` | `<project_key>` | `WILDEDGE_APP_IDENTITY` | Namespace for offline persistence. Set per-app in multi-process workloads |
12+
| `enable_offline_persistence` | `true` | - | Persist unsent events to disk and replay on restart |
13+
| `sampling_interval_s` | `30.0` | `WILDEDGE_SAMPLING_INTERVAL_S` | Seconds between background hardware snapshots. Set to `0` or `None` to disable |
14+
15+
## Advanced
16+
17+
| Parameter | Default | Env var | Description |
18+
|---|---|---|---|
19+
| `batch_size` | `10` | - | Events per transmission (1-100) |
20+
| `flush_interval_sec` | `60` | - | Max seconds between flushes (1-3600) |
21+
| `max_queue_size` | `200` | - | In-memory buffer limit (10-10000) |
22+
| `max_event_age_sec` | `900` | - | Max age in seconds before an event is dropped |
23+
| `enable_dead_letter_persistence` | `false` | - | Persist dropped batches to disk for later inspection |
24+
| `debug` | `false` | `WILDEDGE_DEBUG` | Log SDK internals to console |

docs/manual-tracking.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ Use manual tracking when your framework is not covered by a WildEdge integration
99
- You want to attach input/output metadata (token counts, image dimensions, confidence scores, etc.)
1010
- You want to record user feedback tied to a specific inference
1111

12+
## torch and keras
13+
14+
For `torch` and `keras`, models are user-defined subclasses with no constructor to patch. Use `client.load()` to get load, unload, and inference tracking automatically:
15+
16+
```python
17+
model = client.load(MyModel)
18+
output = model(x) # tracked automatically
19+
```
20+
1221
## Register your model
1322

1423
Every model needs a handle before you can track events against it. Pass the model object and an explicit `model_id`:

0 commit comments

Comments
 (0)