forked from elastic/apm-data
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs/reslice
- Loading branch information
Showing
59 changed files
with
2,559 additions
and
773 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 2 | ||
updates: | ||
|
||
# GitHub actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
reviewers: | ||
- "elastic/observablt-ci" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
time: "22:00" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: bench-diff | ||
on: | ||
push: | ||
pull_request_target: | ||
types: [labeled, synchronize] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
run-benchdiff: | ||
runs-on: ubuntu-latest | ||
# Support for branches, non-forked-prs or forked-prs with a label | ||
if: | | ||
contains(github.event.pull_request.labels.*.name, 'safe-to-test') || | ||
! startsWith(github.event_name, 'pull_request') || | ||
(startsWith(github.event_name, 'pull_request') && github.event.pull_request.head.repo.fork == false) | ||
permissions: | ||
checks: write | ||
steps: | ||
- name: Get sha commit | ||
id: event | ||
run: | | ||
echo "DEBUG: event type(${{ github.event_name }})" | ||
ref="${{ github.sha }}" | ||
if [ "${{ startsWith(github.event_name, 'pull_request') }}" = "true" ] ; then | ||
ref="${{ github.event.pull_request.head.sha }}" | ||
fi | ||
echo "ref=${ref}" >> "$GITHUB_OUTPUT" | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
ref: ${{ steps.event.outputs.ref }} | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
# Version: https://github.com/WillAbides/benchdiff-action/releases/tag/v0.3.5 | ||
- uses: WillAbides/benchdiff-action@990b4c50b5420b485bf87e42c9f18234eba76fbc | ||
id: benchdiff | ||
with: | ||
benchdiff_version: 0.9.1 | ||
status_sha: ${{ steps.event.outputs.ref }} | ||
status_name: benchdiff-result | ||
status_on_degraded: neutral | ||
# See https://github.com/WillAbides/benchdiff | ||
benchdiff_args: | | ||
--base-ref=origin/main | ||
--cpu=1,2 | ||
--count=5 | ||
--warmup-count=1 | ||
--warmup-time=10ms | ||
--benchtime=100ms | ||
--tolerance=20 | ||
--benchmem | ||
--debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "label-elastic-pull-requests" | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened] | ||
|
||
jobs: | ||
safe-to-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check team membership for user | ||
uses: elastic/[email protected] | ||
id: checkUserMember | ||
with: | ||
username: ${{ github.actor }} | ||
team: 'apm' | ||
GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }} | ||
- name: Add safe-to-test label | ||
uses: actions/github-script@v7 | ||
if: steps.checkUserMember.outputs.isTeamMember == 'true' | ||
with: | ||
github-token: ${{ secrets.APM_TECH_USER_TOKEN }} | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ["safe-to-test"] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,11 @@ protolint: | |
gomodtidy: | ||
go mod tidy -v | ||
|
||
generate: | ||
generate_code: | ||
go generate ./... | ||
|
||
generate: generate_code update-licenses | ||
|
||
fieldalignment: | ||
go run golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/[email protected] -test=false $(shell go list ./... | grep -v modeldecoder/generator | grep -v test | grep -v model/modelpb) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,60 @@ | ||
module github.com/elastic/apm-data | ||
|
||
go 1.20 | ||
go 1.21 | ||
|
||
require ( | ||
github.com/gofrs/uuid v4.3.1+incompatible | ||
github.com/google/go-cmp v0.5.9 | ||
github.com/jaegertracing/jaeger v1.38.1 | ||
github.com/google/go-cmp v0.6.0 | ||
github.com/jaegertracing/jaeger v1.40.0 | ||
github.com/json-iterator/go v1.1.12 | ||
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.63.0 | ||
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.66.0 | ||
github.com/pkg/errors v0.9.1 | ||
github.com/stretchr/testify v1.8.3 | ||
github.com/stretchr/testify v1.8.4 | ||
github.com/xeipuuv/gojsonschema v1.2.0 | ||
go.elastic.co/apm/v2 v2.2.0 | ||
go.elastic.co/apm/v2 v2.4.5 | ||
go.elastic.co/fastjson v1.3.0 | ||
go.opentelemetry.io/collector/consumer v0.76.1 | ||
go.opentelemetry.io/collector/pdata v1.0.0-rcv0011 | ||
go.opentelemetry.io/collector/semconv v0.76.1 | ||
go.opentelemetry.io/otel v1.16.0 | ||
go.opentelemetry.io/otel/metric v1.16.0 | ||
go.opentelemetry.io/otel/sdk v1.16.0 | ||
go.opentelemetry.io/otel/sdk/metric v0.39.0 | ||
go.opentelemetry.io/otel/trace v1.16.0 | ||
go.uber.org/zap v1.24.0 | ||
golang.org/x/sync v0.2.0 | ||
golang.org/x/tools v0.9.3 | ||
google.golang.org/grpc v1.54.0 | ||
google.golang.org/protobuf v1.30.0 | ||
go.opentelemetry.io/collector/consumer v0.87.0 | ||
go.opentelemetry.io/collector/pdata v1.0.0-rcv0016 | ||
go.opentelemetry.io/collector/semconv v0.87.0 | ||
go.opentelemetry.io/otel v1.19.0 | ||
go.opentelemetry.io/otel/metric v1.19.0 | ||
go.opentelemetry.io/otel/sdk v1.19.0 | ||
go.opentelemetry.io/otel/sdk/metric v1.19.0 | ||
go.opentelemetry.io/otel/trace v1.19.0 | ||
go.uber.org/zap v1.26.0 | ||
golang.org/x/sync v0.4.0 | ||
golang.org/x/tools v0.14.0 | ||
google.golang.org/grpc v1.58.3 | ||
google.golang.org/protobuf v1.31.0 | ||
) | ||
|
||
require ( | ||
github.com/apache/thrift v0.17.0 // indirect | ||
github.com/apache/thrift v0.19.0 // indirect | ||
github.com/armon/go-radix v1.0.0 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/elastic/go-licenser v0.4.0 // indirect | ||
github.com/elastic/go-sysinfo v1.7.1 // indirect | ||
github.com/elastic/go-windows v1.0.1 // indirect | ||
github.com/go-logr/logr v1.2.4 // indirect | ||
github.com/go-logr/stdr v1.2.2 // indirect | ||
github.com/gogo/protobuf v1.3.2 // indirect | ||
github.com/golang/protobuf v1.5.3 // indirect | ||
github.com/jcchavezs/porto v0.1.0 // indirect | ||
github.com/joeshaw/multierror v0.0.0-20140124173710-69b34d4ec901 // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.2 // indirect | ||
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.63.0 // indirect | ||
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.66.0 // indirect | ||
github.com/opentracing/opentracing-go v1.2.0 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/prometheus/procfs v0.8.0 // indirect | ||
github.com/santhosh-tekuri/jsonschema v1.2.4 // indirect | ||
github.com/prometheus/procfs v0.11.1 // indirect | ||
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect | ||
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect | ||
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect | ||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect | ||
go.uber.org/atomic v1.10.0 // indirect | ||
go.uber.org/multierr v1.11.0 // indirect | ||
golang.org/x/mod v0.10.0 // indirect | ||
golang.org/x/net v0.10.0 // indirect | ||
golang.org/x/sys v0.8.0 // indirect | ||
golang.org/x/text v0.9.0 // indirect | ||
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect | ||
golang.org/x/mod v0.13.0 // indirect | ||
golang.org/x/net v0.17.0 // indirect | ||
golang.org/x/sys v0.13.0 // indirect | ||
golang.org/x/text v0.13.0 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
howett.net/plist v1.0.0 // indirect | ||
) |
Oops, something went wrong.