You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INTEGRATIONS.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
**Purpose**
2
2
3
-
- Document how to add a new first‑class integration to LogStruct so it’s consistent, type‑safe, well‑tested, and shows up automatically in the docs site with an auto‑generated example log.
3
+
- Document how to add a new first‑class integration to LogStruct so it’s consistent, type‑safe, well‑tested, and shows up automatically in the docs docs with an auto‑generated example log.
4
4
5
5
**High‑Level Flow**
6
6
@@ -9,7 +9,7 @@
9
9
- Implement the integration under `lib/log_struct/integrations/…` to produce that log type.
10
10
- Add the dev dependency for the third‑party gem and generate RBIs with Tapioca.
11
11
- Add tests (unit + behavior) under `test/log_struct/integrations` and (if needed) `test/log_struct/log`.
12
-
- Add a short entry in the docs metadata (`site/lib/integration-helpers.ts`). The Integrations page will render it automatically via `AllLogTypes`.
12
+
- Add a short entry in the docs metadata (`docs/lib/integration-helpers.ts`). The Integrations page will render it automatically via `AllLogTypes`.
13
13
- Run type export to update the docs’ TypeScript types.
14
14
15
15
**Conventions**
@@ -99,7 +99,7 @@
99
99
100
100
7. Docs
101
101
- No custom sections in the Integrations page.
102
-
- The Integrations page lists all `AllLogTypes` with titles/descriptions from `site/lib/integration-helpers.ts`.
102
+
- The Integrations page lists all `AllLogTypes` with titles/descriptions from `docs/lib/integration-helpers.ts`.
103
103
- Add an entry to `getLogTypeInfo` for your new log type (title, concise description, optional `configuration_code: 'integrations_configuration'`).
104
104
- Run the type export to regenerate the docs’ TypeScript assets so example logs render:
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ $ gem install logstruct
44
44
45
45
LogStruct is designed to be highly opinionated and work out of the box with minimal configuration.
46
46
47
-
Please see the [documentation](https://logstruct.com/site/configuration/) for configuration options.
47
+
Please see the [documentation](https://logstruct.com/docs/configuration/) for configuration options.
48
48
49
49
### Important Notes on Integration
50
50
@@ -83,7 +83,7 @@ In addition to the built‑in, strictly typed log structures (Request, Error, SQ
83
83
- Fix your `source` to a constant (e.g., return the string `"payments"`), and restrict `event` with a `T::Enum` (e.g., `processed|failed|refunded`).
84
84
- The `LogStruct.info` signature accepts either the internal `CommonFields` (for built‑ins) or your public custom type, so you keep type safety at the call site.
85
85
86
-
See the docs page for a complete example: [Sorbet Types → Custom Typed Logs](https://logstruct.com/site/sorbet-types#custom-log-classes).
86
+
See the docs page for a complete example: [Sorbet Types → Custom Typed Logs](https://logstruct.com/docs/sorbet-types#custom-log-classes).
0 commit comments