Skip to content

Commit 90e7b34

Browse files
committed
Version 0.1a3.
1 parent 10b0bf2 commit 90e7b34

File tree

3 files changed

+15
-22
lines changed

3 files changed

+15
-22
lines changed

README.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,9 @@ documentation](https://github.com/Dynatrace/OneAgent-SDK-for-C/blob/master/READM
4242

4343
<a id="installation"></a>
4444

45-
Once the oneagent SDK is released to PyPI, you will be able to just do `python
46-
-m pip install oneagent-sdk`, to install the SDK.
47-
48-
While the SDK has no public release, please use the wheels provided on the
49-
[GitHub releases
50-
page](https://github.com/Dynatrace/OneAgent-SDK-for-Python/releases), by
51-
giving the additional option
52-
`--find-links DISTIDXURL` to pip (where `DISTIDXURL` is the URL linked on the
53-
GitHub release. This approach also works when
54-
installing packages that depend on the oneagent-sdk package, e.g. `pip install
55-
--find-links DISTIDXURL my-pkg-that-uses-oneagent-sdk`. (Note that this means that
56-
you cannot just use `python setup.py install` for the dependent package. If you
57-
only have a directoy with `setup.py` instead of a proper distribution, use
58-
`python setup.py sdist` and then `pip install --find-links dist --find-links
59-
DISTIDXURL PACKAGENAME`.)
45+
46+
Just do `python -m pip install --upgrade oneagent-sdk`, to install the latest
47+
version of the OneAgent SDK for Python.
6048

6149
To verify your installation, execute
6250

@@ -83,11 +71,15 @@ if not oneagent.try_init():
8371

8472
with SDK.get().trace_incoming_remote_call('method', 'service', 'endpoint'):
8573
pass
74+
75+
print('It may take a few moments before the path appears in the UI.')
76+
input('Please wait...')
77+
oneagent.shutdown()
8678
```
8779

88-
For this, follow the <tests/onesdksamplepy.py>
89-
example (see also the
90-
[documentation](https://dynatrace.github.io/OneAgent-SDK-for-Python/quickstart.html).
80+
For this, follow the [tests/onesdksamplepy.py](test/onesdksamplepy.py) example
81+
(see also the
82+
[documentation](https://dynatrace.github.io/OneAgent-SDK-for-Python/quickstart.html)).
9183

9284
## Documentation
9385

src/oneagent/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
# See https://www.python.org/dev/peps/pep-0440/ "Version Identification and
7575
# Dependency Specification"
76-
__version__ = '0.1a1'
76+
__version__ = '0.1a3'
7777

7878
logger = logging.getLogger('py_sdk')
7979
logger.setLevel(logging.CRITICAL + 1) # Disabled by default

src/oneagent/common.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ class AgentState(_Uninstantiable):
2424
#: The SDK stub is connected to the agent, which is currently active.
2525
ACTIVE = 0
2626

27+
#: The SDK stub is connected to the agent, which is temporarily inactive.
28+
TEMPORARILY_INACTIVE = 1
29+
2730
#: The SDK stub is connected to the agent, which is permanently inactive.
28-
PERMANENTLY_INACTIVE = 1
31+
PERMANENTLY_INACTIVE = 2
2932

30-
#: The SDK stub is connected to the agent, which is temporarily inactive.
31-
TEMPORARILY_INACTIVE = 2
3233

3334
#: The agent has not been initialized.
3435
NOT_INITIALIZED = 3

0 commit comments

Comments
 (0)