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

fix(playground): fix playground vrl version and link #19119

Merged
merged 5 commits into from
Nov 13, 2023

Conversation

pront
Copy link
Member

@pront pront commented Nov 10, 2023

@@ -92,14 +97,12 @@ export class VrlWebPlayground {

addVersions() {
let vectorLinkElement = document.getElementById('vector-version-link');
let vectorVersion = vector_version();
Copy link
Member Author

Choose a reason for hiding this comment

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

This call was redundant since we cached the result above. Now the UI load faster.

@pront pront requested a review from bruceg November 10, 2023 19:20
@pront pront marked this pull request as ready for review November 10, 2023 19:20
@datadog-vectordotdev
Copy link

datadog-vectordotdev bot commented Nov 10, 2023

Datadog Report

Branch report: pront/fix-playground-vrl-version
Commit report: d96a197

vector: 0 Failed, 0 New Flaky, 2003 Passed, 0 Skipped, 1m 21.68s Wall Time

Copy link
Member

@bruceg bruceg left a comment

Choose a reason for hiding this comment

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

I left a couple of cleanup suggestions, but otherwise looks reasonable.

lib/vector-vrl/web-playground/build.rs Outdated Show resolved Hide resolved
@pront pront enabled auto-merge November 13, 2023 17:07
@pront pront added this pull request to the merge queue Nov 13, 2023
Copy link

Regression Detector Results

Run ID: d15e1505-c2a5-4d58-a882-1b4dcf0bad6e
Baseline: 678605c
Comparison: 8dcb7db
Total vector CPUs: 7

Explanation

A regression test is an integrated performance test for vector in a repeatable rig, with varying configuration for vector. What follows is a statistical summary of a brief vector run for each configuration across SHAs given above. The goal of these tests are to determine quickly if vector performance is changed and to what degree by a pull request.

Because a target's optimization goal performance in each experiment will vary somewhat each time it is run, we can only estimate mean differences in optimization goal relative to the baseline target. We express these differences as a percentage change relative to the baseline target, denoted "Δ mean %". These estimates are made to a precision that balances accuracy and cost control. We represent this precision as a 90.00% confidence interval denoted "Δ mean % CI": there is a 90.00% chance that the true value of "Δ mean %" is in that interval.

We decide whether a change in performance is a "regression" -- a change worth investigating further -- if both of the following two criteria are true:

  1. The estimated |Δ mean %| ≥ 5.00%. This criterion intends to answer the question "Does the estimated change in mean optimization goal performance have a meaningful impact on your customers?". We assume that when |Δ mean %| < 5.00%, the impact on your customers is not meaningful. We also assume that a performance change in optimization goal is worth investigating whether it is an increase or decrease, so long as the magnitude of the change is sufficiently large.

  2. Zero is not in the 90.00% confidence interval "Δ mean % CI" about "Δ mean %". This statement is equivalent to saying that there is at least a 90.00% chance that the mean difference in optimization goal is not zero. This criterion intends to answer the question, "Is there a statistically significant difference in mean optimization goal performance?". It also means there is no more than a 10.00% chance this criterion reports a statistically significant difference when the true difference in mean optimization goal is zero -- a "false positive". We assume you are willing to accept a 10.00% chance of inaccurately detecting a change in performance when no true difference exists.

The table below, if present, lists those experiments that have experienced a statistically significant change in mean optimization goal performance between baseline and comparison SHAs with 90.00% confidence OR have been detected as newly erratic. Negative values of "Δ mean %" mean that baseline is faster, whereas positive values of "Δ mean %" mean that comparison is faster. Results that do not exhibit more than a ±5.00% change in their mean optimization goal are discarded. An experiment is erratic if its coefficient of variation is greater than 0.1. The abbreviated table will be omitted if no interesting change is observed.

No interesting changes in experiment optimization goals with confidence ≥ 90.00% and |Δ mean %| ≥ 5.00%.

Fine details of change detection per experiment.
experiment goal Δ mean % Δ mean % CI confidence
syslog_log2metric_humio_metrics ingress throughput +1.33 [+1.22, +1.44] 100.00%
splunk_hec_route_s3 ingress throughput +1.27 [+0.76, +1.78] 100.00%
syslog_regex_logs2metric_ddmetrics ingress throughput +0.95 [+0.87, +1.04] 100.00%
syslog_log2metric_splunk_hec_metrics ingress throughput +0.95 [+0.82, +1.08] 100.00%
syslog_loki ingress throughput +0.49 [+0.44, +0.54] 100.00%
datadog_agent_remap_blackhole_acks ingress throughput +0.34 [+0.25, +0.43] 100.00%
datadog_agent_remap_datadog_logs_acks ingress throughput +0.27 [+0.20, +0.34] 100.00%
otlp_grpc_to_blackhole ingress throughput +0.20 [+0.10, +0.30] 99.89%
syslog_humio_logs ingress throughput +0.18 [+0.09, +0.28] 99.87%
datadog_agent_remap_datadog_logs ingress throughput +0.13 [+0.04, +0.22] 98.12%
http_to_s3 ingress throughput +0.08 [-0.19, +0.35] 37.15%
http_to_http_noack ingress throughput +0.06 [-0.03, +0.15] 71.84%
http_to_http_json ingress throughput +0.05 [-0.02, +0.13] 75.60%
splunk_hec_indexer_ack_blackhole ingress throughput +0.00 [-0.14, +0.14] 0.78%
splunk_hec_to_splunk_hec_logs_acks ingress throughput +0.00 [-0.14, +0.14] 0.03%
splunk_hec_to_splunk_hec_logs_noack ingress throughput -0.04 [-0.16, +0.07] 46.44%
fluent_elasticsearch ingress throughput -0.05 [-0.50, +0.40] 14.13%
enterprise_http_to_http ingress throughput -0.05 [-0.13, +0.03] 69.81%
http_elasticsearch ingress throughput -0.19 [-0.24, -0.13] 100.00%
http_to_http_acks ingress throughput -0.24 [-1.55, +1.07] 24.03%
datadog_agent_remap_blackhole ingress throughput -0.27 [-0.35, -0.18] 100.00%
socket_to_socket_blackhole ingress throughput -0.28 [-0.34, -0.21] 100.00%
http_text_to_http_json ingress throughput -0.32 [-0.44, -0.20] 100.00%
syslog_splunk_hec_logs ingress throughput -0.83 [-0.88, -0.79] 100.00%
otlp_http_to_blackhole ingress throughput -1.40 [-1.55, -1.24] 100.00%
file_to_blackhole egress throughput -4.24 [-6.55, -1.94] 99.75%

Merged via the queue into master with commit 8dcb7db Nov 13, 2023
40 checks passed
@pront pront deleted the pront/fix-playground-vrl-version branch November 13, 2023 19:36
pront added a commit to dygfloyd/vector that referenced this pull request Nov 15, 2023
)

* fix(playground): fix playground vrl version and link

* Ran cargo vdev fmt

* remove redundant line

* replace clone() with as_ref() whenever possible

* Ran cargo vdev fmt
pront added a commit to dygfloyd/vector that referenced this pull request Nov 15, 2023
)

* fix(playground): fix playground vrl version and link

* Ran cargo vdev fmt

* remove redundant line

* replace clone() with as_ref() whenever possible

* Ran cargo vdev fmt
pront added a commit to dygfloyd/vector that referenced this pull request Nov 15, 2023
fix yaml test config and also format the code

fix wrong usage log.get, now all tests are passing

Ran cargo vdev fmt

Fix reference in to_metrics_metadata in log_to_metric.rs

Convert type errors to single error with type.

Added test for multiple metrics but it is failing.

Additional attempts to get the multiple_metadata_metrics working.

fix(playground): fix playground vrl version and link (vectordotdev#19119)

* fix(playground): fix playground vrl version and link

* Ran cargo vdev fmt

* remove redundant line

* replace clone() with as_ref() whenever possible

* Ran cargo vdev fmt

chore(website): Fix commenting step on workflow (vectordotdev#19134)

* fix: extra env vars into comment step

* fix: add sleep to allow branch to connect

* fix: update where branch name and sanitized branch name are used

Remove multiple metrics test.

chore(ci): Bump bufbuild/buf-setup-action from 1.27.2 to 1.28.0 (vectordotdev#19137)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.27.2 to 1.28.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.27.2...v1.28.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(deps): Bump the clap group with 1 update (vectordotdev#19127)

Bumps the clap group with 1 update: [clap](https://github.com/clap-rs/clap).

- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](clap-rs/clap@v4.4.7...v4.4.8)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: clap
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(releasing): Add known issue for Datadog Metrics sink in v0.34.0 (vectordotdev#19122)

* chore(releasing): Add known issue for Datadog Metrics sink in v0.34.0

Ref: vectordotdev#19110

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* Update website/cue/reference/releases/0.34.0.cue

Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com>

---------

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
Co-authored-by: Brett Blue <84536271+brett0000FF@users.noreply.github.com>

chore(deps): Bump proptest from 1.3.1 to 1.4.0 (vectordotdev#19131)

Bumps [proptest](https://github.com/proptest-rs/proptest) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/proptest-rs/proptest/releases)
- [Changelog](https://github.com/proptest-rs/proptest/blob/master/CHANGELOG.md)
- [Commits](proptest-rs/proptest@v1.3.1...v1.4.0)

---
updated-dependencies:
- dependency-name: proptest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(deps): Bump env_logger from 0.10.0 to 0.10.1 (vectordotdev#19130)

Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](rust-cli/env_logger@v0.10.0...v0.10.1)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(docs): Add alpha to traces and beta to metrics in descriptions (vectordotdev#19139)

add alpha to traces and beta to metrics in descriptions

Update README.md (vectordotdev#19142)

chore(deps): Bump hdrhistogram from 7.5.2 to 7.5.3 (vectordotdev#19129)

Bumps [hdrhistogram](https://github.com/HdrHistogram/HdrHistogram_rust) from 7.5.2 to 7.5.3.
- [Release notes](https://github.com/HdrHistogram/HdrHistogram_rust/releases)
- [Changelog](https://github.com/HdrHistogram/HdrHistogram_rust/blob/main/CHANGELOG.md)
- [Commits](HdrHistogram/HdrHistogram_rust@v7.5.2...v7.5.3)

---
updated-dependencies:
- dependency-name: hdrhistogram
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

enhancement(file sink, aws_s3 sink, gcp_cloud_storage): configurable filename timezone (vectordotdev#18506)

* add TzOffset as File Sink configuration

* integrate TzOffset into File Sink

* apply tz offset to all log event in render_timestamp.

* added TzOffset tests

* adding chrono-tz for parsing timezones

* rename tz_offset to path_tz. timezones are safer than offsets

* update tz_offset references to path_tz

* cargo fmt

* remove unnecessary commented out code. fmt and generate-component-docs

* clippy suggestions and remove TryFrom<&str> - serde handles converting to String

* rename Template config option `path_tz` to `timezone`

* move `path_tz.rs` to `src/config`

preparing for applying the same to `aws_s3` sink for filename timezone

* update doc configuration description for path_tz

* fix wrong method name

* AWS and GCS filename timezone support

  * remove custom tz config
  * use VRL's timezone config
  * pass around SinkContext

* use TzOffset to pass down to request builders. VRL's TimeZone can't be hash derived

* make key_prefix timezone aware and use Option `or` syntax

* move tz to offset conversion codes to sink util

* remove empty line

* update timezone docs in vector-config

* get timezone and convert to offset in one go in FileSink

* just pass the sinkconfig directly

* vector_common to vector_lib

* configurable_component is in vector_lib now

* lookup to vector_lib

* fix aws s3 integration test. pass the context to build_processor in tests

* formatting

* add sinkcontext to FileSink in file tests

* key_prefix is expected to be a template. no need for into

Update documentation

Updated documentation to include example

enhancement(networking, sinks): add full jitter to retry backoff policy (vectordotdev#19106)

* enhancement(networking, sinks): add full jitter to retry backoff policy

* fmt

* fix tests

* add test

* fix

* force ci

fix(file source, kubernetes_logs source, file sink): make file internal metric tag opt-in (vectordotdev#19145)

* fix(file source, kubernetes_logs source, file sink): make file internal metric tag opt-in

* update cue

* fix tests

fix(datadog_metrics sink): evaluate series v1 env var at runtime (vectordotdev#19148)

fix(datadog_metrics sink): evaluate v1 env var at runtime

chore(website): WEB-4247 | Update references from s3 to setup.vector.dev (vectordotdev#19149)

feat: update references from s3 to setup.vector.dev

fix(ARC, networking): improve request settings (vectordotdev#19101)

* fix(ARC, networking): improve request settings

* fix spelling

* change defaults

* refactor

* self-review

* clippy

* update default overrides

* fmt nit

* add upgrade guide entry

Update src/transforms/log_to_metric.rs

Co-authored-by: Pavlos Rontidis <pavlos.rontidis@gmail.com>

Tweak and generate docs

Tweak and generate docs

Update website/cue/reference/components/transforms/base/log_to_metric.cue

Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com>

Update website/cue/reference/components/transforms/base/log_to_metric.cue

Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com>

Update website/cue/reference/components/transforms/base/log_to_metric.cue

Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com>

Update src/transforms/log_to_metric.rs

Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com>

Update src/transforms/log_to_metric.rs

Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com>

Update src/transforms/log_to_metric.rs

Co-authored-by: Heston Hoffman <hestonhoffman@gmail.com>

Fix styling in example for all_metrics.

Minor tweaks to formatting for documentation

Fix minor issues with formatting that was causing tests to fail.
AndrooTheChen pushed a commit to discord/vector that referenced this pull request Sep 23, 2024
)

* fix(playground): fix playground vrl version and link

* Ran cargo vdev fmt

* remove redundant line

* replace clone() with as_ref() whenever possible

* Ran cargo vdev fmt
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