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

Release/3.1.0 #382

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Release/3.1.0 #382

wants to merge 4 commits into from

Conversation

pondzix
Copy link
Contributor

@pondzix pondzix commented Nov 20, 2024

No description provided.

pondzix and others added 4 commits November 8, 2024 14:54
Before this commit `epoch`-like functions required `time.Time` type on input.
It worked well for atomic Snowplow fields like `collector_tstamp`.

It becomes problematic when some nested context fields representing time
are passed. Such fields don't use `time.Time`, they are plain strings.

This commit makes `epoch`/`epochMillis` functions more flexible:

* When input is `time.Time` - just use it as is (atomic fields).
* When input is a string - try to parse it as `time.Time`.
* When input is something different - return an error.

In case of a string there are various time layouts that could be used
for parsing. That's why `epoch`/`epochMillis` also accept additional
 string parameter representing time layout. Layout must be valid [GO
 layout](https://pkg.go.dev/time#pkg-constants). Default value is `2006-01-02T15:04:05.999Z`.
New E2E latency is calculated based on `collector_tstamp` field coming from Snowplow enriched data. It means E2E can be obtain from valid Snowplow events:

`E2E latency = (target write timestamp) - (collector timestamp)`

E2E metric can be enabled/disabled using new top-level confgiuration option `metrics.enable_e2e_latency`
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