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
variable if set, otherwise defaults to `True`. If `if-token-present` is provided, logs will only be sent if
180
180
a token is present.
181
181
token: The project token. Defaults to the `LOGFIRE_TOKEN` environment variable.
182
-
project_name: Name to request when creating a new project. Defaults to the `LOGFIRE_PROJECT_NAME` environment
183
-
variable, or the current directory name.
184
-
Project name accepts a string value containing alphanumeric characters and
185
-
hyphens (-). The hyphen character must not be located at the beginning or end of the string and should
186
-
appear in between alphanumeric characters.
187
182
service_name: Name of this service. Defaults to the `LOGFIRE_SERVICE_NAME` environment variable.
188
183
service_version: Version of this service. Defaults to the `LOGFIRE_SERVICE_VERSION` environment variable, or the
189
184
current git commit hash if available.
@@ -198,39 +193,37 @@ def configure(
198
193
`LOGFIRE_CONFIG_DIR` environment variable, otherwise defaults to the current working directory.
199
194
data_dir: Directory to store credentials, and logs. If `None` uses the `LOGFIRE_CREDENTIALS_DIR` environment variable, otherwise defaults to `'.logfire'`.
200
195
base_url: Root URL for the Logfire API. If `None` uses the `LOGFIRE_BASE_URL` environment variable, otherwise defaults to https://logfire-api.pydantic.dev.
201
-
collect_system_metrics: Legacy argument, use [`logfire.instrument_system_metrics()`](https://docs.pydantic.dev/logfire/integrations/system_metrics/) instead.
202
196
id_generator: Generator for span IDs. Defaults to `RandomIdGenerator()` from the OpenTelemetry SDK.
203
197
ns_timestamp_generator: Generator for nanosecond timestamps. Defaults to [`time.time_ns`][time.time_ns] from the
204
198
Python standard library.
205
-
processors: Legacy argument, use `additional_span_processors` instead.
206
199
additional_span_processors: Span processors to use in addition to the default processor which exports spans to Logfire's API.
207
-
metric_readers: Legacy argument, use `additional_metric_readers` instead.
208
200
additional_metric_readers: Sequence of metric readers to be used in addition to the default reader
209
201
which exports metrics to Logfire's API.
210
202
pydantic_plugin: Configuration for the Pydantic plugin. If `None` uses the `LOGFIRE_PYDANTIC_PLUGIN_*` environment
211
203
variables, otherwise defaults to `PydanticPlugin(record='off')`.
212
204
fast_shutdown: Whether to shut down exporters and providers quickly, mostly used for tests. Defaults to `False`.
213
205
scrubbing: Options for scrubbing sensitive data. Set to `False` to disable.
214
-
scrubbing_patterns: Deprecated, use `scrubbing=logfire.ScrubbingOptions(extra_patterns=[...])` instead.
215
-
scrubbing_callback: Deprecated, use `scrubbing=logfire.ScrubbingOptions(callback=...)` instead.
"""Name of the project. Project name accepts a string value containing alphanumeric characters and hyphens (-). The hyphen character must not be located at the beginning or end of the string and should appear in between alphanumeric characters."""
"""Name of the service emitting spans. For further details, please refer to the [Service section](https://opentelemetry.io/docs/specs/semconv/resource/#service)."""
0 commit comments