Skip to content

Commit 3ee92ba

Browse files
committed
Fix interface typo
1 parent f3629c2 commit 3ee92ba

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

packages/logfire-api/src/index.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,22 @@
22
import { Span, SpanStatusCode } from '@opentelemetry/api'
33
import { ATTR_EXCEPTION_MESSAGE, ATTR_EXCEPTION_STACKTRACE } from '@opentelemetry/semantic-conventions'
44

5-
import { ScrubCallback } from './AttributeScrubber'
65
import { ATTRIBUTES_LEVEL_KEY, ATTRIBUTES_MESSAGE_TEMPLATE_KEY, ATTRIBUTES_SPAN_TYPE_KEY, ATTRIBUTES_TAGS_KEY } from './constants'
76
import { logfireFormatWithExtras } from './formatter'
8-
import { logfireApiConfig, serializeAttributes } from './logfireApiConfig'
7+
import { logfireApiConfig, ScrubbingOptions, serializeAttributes } from './logfireApiConfig'
98

109
export * from './AttributeScrubber'
1110
export { configureLogfireApi, logfireApiConfig, resolveBaseUrl, resolveSendToLogfire } from './logfireApiConfig'
11+
export type { ScrubbingOptions } from './logfireApiConfig'
1212
export { serializeAttributes } from './serializeAttributes'
1313
export * from './ULIDGenerator'
1414

15-
export interface SrubbingOptions {
16-
callback?: ScrubCallback
17-
extraPatterns?: string[]
18-
}
19-
2015
export interface LogfireApiConfigOptions {
2116
otelScope?: string
2217
/**
2318
* Options for scrubbing sensitive data. Set to False to disable.
2419
*/
25-
scrubbing?: false | SrubbingOptions
20+
scrubbing?: false | ScrubbingOptions
2621
}
2722

2823
export const Level = {

packages/logfire-api/src/logfireApiConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { DEFAULT_OTEL_SCOPE } from './constants'
77
export * from './AttributeScrubber'
88
export { serializeAttributes } from './serializeAttributes'
99

10-
export interface SrubbingOptions {
10+
export interface ScrubbingOptions {
1111
callback?: ScrubCallback
1212
extraPatterns?: string[]
1313
}
@@ -17,7 +17,7 @@ export interface LogfireApiConfigOptions {
1717
/**
1818
* Options for scrubbing sensitive data. Set to False to disable.
1919
*/
20-
scrubbing?: false | SrubbingOptions
20+
scrubbing?: false | ScrubbingOptions
2121
}
2222

2323
export type SendToLogfire = 'if-token-present' | boolean | undefined

packages/logfire-browser/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface LogfireConfigOptions {
5454
/**
5555
* Options for scrubbing sensitive data. Set to False to disable.
5656
*/
57-
scrubbing?: false | logfireApi.SrubbingOptions
57+
scrubbing?: false | logfireApi.ScrubbingOptions
5858

5959
/**
6060
* Name of this service.

packages/logfire/src/logfireConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export interface LogfireConfigOptions {
8484
/**
8585
* Options for scrubbing sensitive data. Set to False to disable.
8686
*/
87-
scrubbing?: false | logfireApi.SrubbingOptions
87+
scrubbing?: false | logfireApi.ScrubbingOptions
8888
/**
8989
* Whether to send logs to logfire.dev.
9090
* Defaults to the `LOGFIRE_SEND_TO_LOGFIRE` environment variable if set, otherwise defaults to True. If if-token-present is provided, logs will only be sent if a token is present.

0 commit comments

Comments
 (0)