Skip to content

Commit d26a750

Browse files
author
Elpedio Adoptante Jr
committed
update setup to search for packages and updated readme
1 parent 85a9a20 commit d26a750

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,22 @@ export STACKIFY_API_KEY=******
4242
```
4343

4444

45+
#### Using the new transport (Agent Socket)
46+
Standard API
47+
```python
48+
logger = stackify.getLogger(application="Python Application", environment="Production", api_key="***", transport="agent_socket")
49+
```
50+
51+
Python Logging Integration
52+
```python
53+
stackify_handler = stackify.StackifyHandler(application="Python Application", environment="Production", api_key="***", transport="agent_socket")
54+
```
55+
56+
Environment Settings
57+
```bash
58+
export STACKIFY_TRANSPORT=agent_socket
59+
```
60+
4561
## Usage
4662

4763
**stackify-python-api** handles uploads in batches of 100 messages at a time on another thread.

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
from setuptools import setup
2+
import setuptools
33
import re
44
import ast
55

@@ -19,12 +19,12 @@
1919
f = f.read()
2020
version = ast.literal_eval(version_re.search(f).group(1))
2121

22-
setup(
22+
setuptools.setup(
2323
name='stackify-api-python',
2424
version=version,
2525
author='Stackify',
2626
author_email='support@stackify.com',
27-
packages=['stackify'],
27+
packages=setuptools.find_packages(exclude=("tests", "*tests", "tests*",)),
2828
url='https://github.com/stackify/stackify-api-python',
2929
description='Stackify API for Python',
3030
long_description=long_description,

0 commit comments

Comments
 (0)