Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segment Migration: Making Endpoint Configurable. #1236

Merged
merged 9 commits into from
Apr 23, 2024
Merged

Conversation

zem360
Copy link
Contributor

@zem360 zem360 commented Apr 17, 2024

Description

Introducing env variable RUNTIME__TELEMETRY_ENDPOINT to overwrite default telemetry endpoint.

Changes

  • Adding default endpoint to RunConfiguration
  • Overwriting default endpoint with RUNTIME__TELEMETRY_ENDPOINT.

@zem360 zem360 requested a review from sh-rp April 17, 2024 14:07
Copy link

netlify bot commented Apr 17, 2024

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit 444ccd8
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/6626e48cb1ab3600085ec16e

dlt/common/runtime/segment.py Outdated Show resolved Hide resolved
dlt/common/runtime/segment.py Outdated Show resolved Hide resolved
dlt/common/runtime/segment.py Outdated Show resolved Hide resolved
dlt/common/runtime/segment.py Outdated Show resolved Hide resolved
@zem360 zem360 requested a review from sh-rp April 18, 2024 00:05
@zem360
Copy link
Contributor Author

zem360 commented Apr 18, 2024

@sh-rp I messed up the rebase. Need git support

1. In init_segment() adding checks for env RUNTIME__TELEMETRY_ENDPOINT.
2. Update _SEGMENT_ENDPOINT based on env variable. Set default value if None provided with default write key.
3. Adjusting header based on endpoint.
sh-rp
sh-rp previously approved these changes Apr 18, 2024
Copy link
Collaborator

@sh-rp sh-rp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is looking good now @zem360 please create a follow up ticket so we can add some basic tests!

@zem360 zem360 requested a review from sh-rp April 22, 2024 22:41
@sh-rp sh-rp merged commit 9f04a1b into devel Apr 23, 2024
47 of 48 checks passed
@zem360 zem360 deleted the telemetry-segment-gcp branch April 24, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants