This package provides a comprehensive solution for integrating advanced error tracking and performance monitoring into your application. It offers a set of powerful configuration options to tailor the integration to your specific needs.
Project description
drcode-python
drcode-python is a Python package that provides a wrapper around , making it easy to configure and use 's features, including profiling and error handling.
Installation
To install the package, run:
bash
Copy code
pip install drcode-python
Getting Started
Basic Usage
python
Copy code
from drcode_python import init_drcode
config = {
'public_key': 'yourPublicKey',
'project_id': 'yourProjectId',
'traces_sample_rate': 1.0, # optional
'profiles_sample_rate': 1.0 # optional
}
init_drcode(config)
<p>
Configuration
Configuration Object
public_key
(str): The public key for .project_id
(str): The project ID.traces_sample_rate
(float, optional): The sample rate for tracing (default: 1.0).profiles_sample_rate
(float, optional): The sample rate for profiling (default: 1.0).
API Reference
Functions
init_drcode(config: dict) -> None
Initializes with the provided configuration.
- config (dict): The configuration dictionary.
Configuration Dictionary
The configuration dictionary should contain the following keys:
public_key
(str): The public key for .project_id
(str): The project ID.traces_sample_rate
(float, optional): The sample rate for tracing (default: 1.0).profiles_sample_rate
(float, optional): The sample rate for profiling (default: 1.0).
License
This project is licensed under the MIT License.
Version
1.0.2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file drcode-python-1.0.2.tar.gz
.
File metadata
- Download URL: drcode-python-1.0.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ad04f81edf99ce2ea7930466616e26a84af74c44c7eb12c3da9c272f38cd321e
|
|
MD5 |
45c4ebe5d021d3f120c541bee0693449
|
|
BLAKE2b-256 |
1b17a09b5a50e6ad806e13053656f05d6908f73e6bbaf2a9c029a9bd8c9c9580
|
File details
Details for the file drcode_python-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: drcode_python-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7f75fedcb9d403a0b05e40790dcea676cbb581818c46d4fa905caabb02995729
|
|
MD5 |
6d7d347e841059811c831c270edf4053
|
|
BLAKE2b-256 |
40be254fae516ef8774b766ad42a6c09005036aa135cb1790772fe8c5645ee00
|