Skip to content

Commit

Permalink
changelog and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
edublancas committed Jan 12, 2024
1 parent 27ec659 commit 000dd1d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 0.2.20dev

* [Feature] Obtain system info once for faster initialization
* [Feature] Add `Telemetry.from_package` for simpler initialization


## 0.2.19 (2023-12-12)

* [Fix] `@modify_exceptions` decorator now compatible with `ClickException` ([#81](https://github.com/ploomber/core/issues/81))
Expand Down
15 changes: 6 additions & 9 deletions doc/telemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@ from ploomber_core.telemetry import Telemetry
Initialize it with the API key, name of the package, and version. Here's an example:

```{code-cell} ipython3
from ploomber_core import __version__
telemetry = Telemetry(
api_key="SOMEKEY",
# change for the actual name
package_name="ploomber-core",
# change for the actual version
version=__version__,
)
telemetry = Telemetry.from_package(package_name="ploomber-core")
```

```{note}
`Telemetry.from_package` is the simplest way to initialize the telemetry object, you might use the constructor directly if you want to customize
the configuration.
```

To log call functions:
Expand Down

0 comments on commit 000dd1d

Please sign in to comment.