Skip to content

Commit

Permalink
Add ScrubbingOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Jun 29, 2024
1 parent ec76808 commit 6226b0c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions logfire-api/logfire_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ def __init__(self, *args, **kwargs) -> None: ...
class TailSamplingOptions:
def __init__(self, *args, **kwargs) -> None: ...

class ScrubbingOptions:
def __init__(self, *args, **kwargs) -> None: ...

class PydanticPlugin:
def __init__(self, *args, **kwargs) -> None: ...

Expand Down
2 changes: 1 addition & 1 deletion logfire-api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "logfire-api"
version = "0.42.0"
version = "0.45.0"
description = "Shim for the Logfire SDK which does nothing unless Logfire is installed"
authors = [
{ name = "Pydantic Team", email = "engineering@pydantic.dev" },
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ quote-style = "single"
typeCheckingMode = "strict"
reportUnnecessaryTypeIgnoreComment = true
reportMissingTypeStubs = false
exclude = ["docs/**/*.py", "site/**/*.py", ".venv", "venv*", "ignoreme", "logfire-api/logfire_api/**/*.py"]
exclude = ["docs/**/*.py", "site/**/*.py", ".venv", "venv*", "ignoreme", "out", "logfire-api"]
venvPath = ".venv"

[tool.pytest.ini_options]
Expand Down
4 changes: 4 additions & 0 deletions tests/test_logfire_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ def test_runtime(logfire_api_factory: Callable[[], ModuleType], module_name: str
logfire_api.TailSamplingOptions()
logfire__all__.remove('TailSamplingOptions')

assert hasattr(logfire_api, 'ScrubbingOptions')
logfire_api.ScrubbingOptions()
logfire__all__.remove('ScrubbingOptions')

assert hasattr(logfire_api, 'METRICS_PREFERRED_TEMPORALITY')
logfire__all__.remove('METRICS_PREFERRED_TEMPORALITY')

Expand Down

0 comments on commit 6226b0c

Please sign in to comment.