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: logfire-api/logfire_api/__init__.pyi
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
from ._internal.auto_traceimportAutoTraceModuleasAutoTraceModule
2
2
from ._internal.auto_trace.rewrite_astimportno_auto_traceasno_auto_trace
3
-
from ._internal.configimportConsoleOptionsasConsoleOptions, METRICS_PREFERRED_TEMPORALITYasMETRICS_PREFERRED_TEMPORALITY, PydanticPluginasPydanticPlugin, configureasconfigure
3
+
from ._internal.configimportAdvancedOptionsasAdvancedOptions, ConsoleOptionsasConsoleOptions, METRICS_PREFERRED_TEMPORALITYasMETRICS_PREFERRED_TEMPORALITY, PydanticPluginasPydanticPlugin, configureasconfigure
4
4
from ._internal.constantsimportLevelNameasLevelName
5
5
from ._internal.exporters.fileimportload_fileasload_spans_from_file
6
6
from ._internal.mainimportLogfireasLogfire, LogfireSpanasLogfireSpan
@@ -11,7 +11,7 @@ from .integrations.structlog import LogfireProcessor as StructlogProcessor
console: Whether to control terminal output. If `None` uses the `LOGFIRE_CONSOLE_*` environment variables,
73
81
otherwise defaults to `ConsoleOption(colors='auto', indent_spans=True, include_timestamps=True, verbose=False)`.
74
82
If `False` disables console output. It can also be disabled by setting `LOGFIRE_CONSOLE` environment variable to `false`.
75
-
show_summary: When to print a summary of the Logfire setup including a link to the dashboard. If `None` uses the `LOGFIRE_SHOW_SUMMARY` environment variable, otherwise
76
-
defaults to `True`.
77
83
config_dir: Directory that contains the `pyproject.toml` file for this project. If `None` uses the
78
84
`LOGFIRE_CONFIG_DIR` environment variable, otherwise defaults to the current working directory.
79
85
data_dir: Directory to store credentials, and logs. If `None` uses the `LOGFIRE_CREDENTIALS_DIR` environment variable, otherwise defaults to `'.logfire'`.
80
-
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.
81
-
id_generator: Generator for span IDs. Defaults to `RandomIdGenerator()` from the OpenTelemetry SDK.
82
-
ns_timestamp_generator: Generator for nanosecond timestamps. Defaults to [`time.time_ns`][time.time_ns] from the
83
-
Python standard library.
84
86
additional_span_processors: Span processors to use in addition to the default processor which exports spans to Logfire's API.
85
87
additional_metric_readers: Sequence of metric readers to be used in addition to the default reader
86
88
which exports metrics to Logfire's API.
87
89
pydantic_plugin: Configuration for the Pydantic plugin. If `None` uses the `LOGFIRE_PYDANTIC_PLUGIN_*` environment
88
90
variables, otherwise defaults to `PydanticPlugin(record='off')`.
89
-
fast_shutdown: Whether to shut down exporters and providers quickly, mostly used for tests. Defaults to `False`.
90
91
scrubbing: Options for scrubbing sensitive data. Set to `False` to disable.
0 commit comments