Skip to content

Commit

Permalink
feat: add Classic Ingest Key support
Browse files Browse the repository at this point in the history
  • Loading branch information
jharley committed Mar 6, 2024
1 parent 4915308 commit 9035e81
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
5 changes: 1 addition & 4 deletions beeline/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import socket
from contextlib import contextmanager

from libhoney import Client
from libhoney import Client, IsClassicKey
from beeline.trace import SynchronousTracer
from beeline.version import VERSION
from beeline import internal
Expand Down Expand Up @@ -75,9 +75,6 @@ def __init__(self,
if debug:
self._init_logger()

def IsClassicKey(writekey):
return len(writekey) == 32

# allow setting some values from the environment
if not writekey:
writekey = os.environ.get('HONEYCOMB_WRITEKEY', '')
Expand Down
13 changes: 7 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository = "https://github.com/honeycombio/beeline-python"

[tool.poetry.dependencies]
python = ">=3.7, <4"
libhoney = "^2.3.0"
libhoney = "^2.4.0"
wrapt = "^1.12.1"
[tool.poetry.dev-dependencies]
mock = "^5.0.2"
Expand Down

0 comments on commit 9035e81

Please sign in to comment.