Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Update to Go 1.16.4
- Adapt to elastic/beats#25696
- golint fixes
- Add gotestsum to go.mod
- tests: chown go.sum files

go mod download will download all modules, even
if they are not used (e.g. dependencies of parts
of beats that are not dependencies of apm-server).
As such the command may need to update go.sum,
so make sure it is owned by the running user.
  • Loading branch information
axw committed Jun 2, 2021
1 parent eef0ac3 commit 6bfad17
Show file tree
Hide file tree
Showing 12 changed files with 247 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.15.9
1.16.4
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.15.9
FROM golang:1.16.4
MAINTAINER Nicolas Ruflin <ruflin@elastic.co>

RUN set -x && \
Expand Down
46 changes: 23 additions & 23 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -576,11 +576,11 @@ SOFTWARE.

--------------------------------------------------------------------------------
Dependency : github.com/elastic/beats/v7
Version: v7.0.0-alpha2.0.20210511162651-b54b2e5e8c72
Version: v7.0.0-alpha2.0.20210601231209-d95f6bab8554
Licence type (autodetected): Elastic
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/github.com/elastic/beats/v7@v7.0.0-alpha2.0.20210511162651-b54b2e5e8c72/LICENSE.txt:
Contents of probable licence file $GOMODCACHE/github.com/elastic/beats/v7@v7.0.0-alpha2.0.20210601231209-d95f6bab8554/LICENSE.txt:

Source code in this repository is variously licensed under the Apache License
Version 2.0, an Apache compatible license, or the Elastic License. Outside of
Expand Down Expand Up @@ -3512,11 +3512,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------------------
Dependency : go.elastic.co/apm
Version: v1.11.0
Version: v1.12.0
Licence type (autodetected): Apache-2.0
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/go.elastic.co/apm@v1.11.0/LICENSE:
Contents of probable licence file $GOMODCACHE/go.elastic.co/apm@v1.12.0/LICENSE:

Apache License
Version 2.0, January 2004
Expand Down Expand Up @@ -4630,11 +4630,11 @@ THE SOFTWARE.

--------------------------------------------------------------------------------
Dependency : go.uber.org/zap
Version: v1.16.0
Version: v1.17.0
Licence type (autodetected): MIT
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/go.uber.org/zap@v1.16.0/LICENSE.txt:
Contents of probable licence file $GOMODCACHE/go.uber.org/zap@v1.17.0/LICENSE.txt:

Copyright (c) 2016-2017 Uber Technologies, Inc.

Expand All @@ -4659,11 +4659,11 @@ THE SOFTWARE.

--------------------------------------------------------------------------------
Dependency : golang.org/x/net
Version: v0.0.0-20210510120150-4163338589ed
Version: v0.0.0-20210525063256-abc453219eb5
Licence type (autodetected): BSD-3-Clause
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/golang.org/x/net@v0.0.0-20210510120150-4163338589ed/LICENSE:
Contents of probable licence file $GOMODCACHE/golang.org/x/net@v0.0.0-20210525063256-abc453219eb5/LICENSE:

Copyright (c) 2009 The Go Authors. All rights reserved.

Expand Down Expand Up @@ -4770,11 +4770,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------------------
Dependency : google.golang.org/grpc
Version: v1.37.1
Version: v1.38.0
Licence type (autodetected): Apache-2.0
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/google.golang.org/grpc@v1.37.1/LICENSE:
Contents of probable licence file $GOMODCACHE/google.golang.org/grpc@v1.38.0/LICENSE:


Apache License
Expand Down Expand Up @@ -5906,12 +5906,12 @@ THE SOFTWARE.


--------------------------------------------------------------------------------
Dependency : github.com/Microsoft/go-winio
Version: v0.4.16
Dependency : github.com/bi-zone/go-winio
Version: v0.4.15
Licence type (autodetected): MIT
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/github.com/!microsoft/go-winio@v0.4.16/LICENSE:
Contents of probable licence file $GOMODCACHE/github.com/bi-zone/go-winio@v0.4.15/LICENSE:

The MIT License (MIT)

Expand Down Expand Up @@ -10081,11 +10081,11 @@ limitations under the License.

--------------------------------------------------------------------------------
Dependency : github.com/fatih/color
Version: v1.10.0
Version: v1.12.0
Licence type (autodetected): MIT
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/github.com/fatih/color@v1.10.0/LICENSE.md:
Contents of probable licence file $GOMODCACHE/github.com/fatih/color@v1.12.0/LICENSE.md:

The MIT License (MIT)

Expand Down Expand Up @@ -14635,11 +14635,11 @@ SOFTWARE.

--------------------------------------------------------------------------------
Dependency : github.com/mattn/go-isatty
Version: v0.0.12
Version: v0.0.13
Licence type (autodetected): MIT
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/github.com/mattn/go-isatty@v0.0.12/LICENSE:
Contents of probable licence file $GOMODCACHE/github.com/mattn/go-isatty@v0.0.13/LICENSE:

Copyright (c) Yasuhiro MATSUMOTO <mattn.jp@gmail.com>

Expand Down Expand Up @@ -18294,11 +18294,11 @@ THE SOFTWARE.

--------------------------------------------------------------------------------
Dependency : golang.org/x/crypto
Version: v0.0.0-20210506145944-38f3c27a63bf
Version: v0.0.0-20210513164829-c07d793c2f9a
Licence type (autodetected): BSD-3-Clause
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/golang.org/x/crypto@v0.0.0-20210506145944-38f3c27a63bf/LICENSE:
Contents of probable licence file $GOMODCACHE/golang.org/x/crypto@v0.0.0-20210513164829-c07d793c2f9a/LICENSE:

Copyright (c) 2009 The Go Authors. All rights reserved.

Expand Down Expand Up @@ -18368,11 +18368,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------------------
Dependency : golang.org/x/sys
Version: v0.0.0-20210511113859-b0526f3d8744
Version: v0.0.0-20210601080250-7ecdf8ef093b
Licence type (autodetected): BSD-3-Clause
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/golang.org/x/sys@v0.0.0-20210511113859-b0526f3d8744/LICENSE:
Contents of probable licence file $GOMODCACHE/golang.org/x/sys@v0.0.0-20210601080250-7ecdf8ef093b/LICENSE:

Copyright (c) 2009 The Go Authors. All rights reserved.

Expand Down Expand Up @@ -18479,11 +18479,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------------------
Dependency : google.golang.org/genproto
Version: v0.0.0-20210510173355-fb37daa5cd7a
Version: v0.0.0-20210601170153-0befbe3492e2
Licence type (autodetected): Apache-2.0
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/google.golang.org/genproto@v0.0.0-20210510173355-fb37daa5cd7a/LICENSE:
Contents of probable licence file $GOMODCACHE/google.golang.org/genproto@v0.0.0-20210601170153-0befbe3492e2/LICENSE:


Apache License
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To get started with APM please see our [Getting Started Guide](https://www.elast

### Requirements

* [Golang](https://golang.org/dl/) 1.15.9
* [Golang](https://golang.org/dl/) 1.16.4

### Install

Expand Down
149 changes: 149 additions & 0 deletions docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7395,6 +7395,56 @@ example: docker
--
[float]
=== data_stream
The data_stream fields take part in defining the new data stream naming scheme.
In the new data stream naming scheme the value of the data stream fields combine to the name of the actual data stream in the following manner: `{data_stream.type}-{data_stream.dataset}-{data_stream.namespace}`. This means the fields can only contain characters that are valid as part of names of data streams. More details about this can be found in this https://www.elastic.co/blog/an-introduction-to-the-elastic-data-stream-naming-scheme[blog post].
An Elasticsearch data stream consists of one or more backing indices, and a data stream name forms part of the backing indices names. Due to this convention, data streams must also follow index naming restrictions. For example, data stream names cannot include `\`, `/`, `*`, `?`, `"`, `<`, `>`, `|`, ` ` (space character), `,`, or `#`. Please see the Elasticsearch reference for additional https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html#indices-create-api-path-params[restrictions].
*`data_stream.dataset`*::
+
--
The field can contain anything that makes sense to signify the source of the data.
Examples include `nginx.access`, `prometheus`, `endpoint` etc. For data streams that otherwise fit, but that do not have dataset set we use the value "generic" for the dataset value. `event.dataset` should have the same value as `data_stream.dataset`.
Beyond the Elasticsearch data stream naming criteria noted above, the `dataset` value has additional restrictions:
* Must not contain `-`
* No longer than 100 characters
type: constant_keyword
example: nginx.access
--
*`data_stream.namespace`*::
+
--
A user defined namespace. Namespaces are useful to allow grouping of data.
Many users already organize their indices this way, and the data stream naming scheme now provides this best practice as a default. Many users will populate this field with `default`. If no value is used, it falls back to `default`.
Beyond the Elasticsearch index naming criteria noted above, `namespace` value has the additional restrictions:
* Must not contain `-`
* No longer than 100 characters
type: constant_keyword
example: production
--
*`data_stream.type`*::
+
--
An overarching type for the data stream.
Currently allowed values are "logs" and "metrics". We expect to also add "traces" and "synthetics" in the near future.
type: constant_keyword
example: logs
--
[float]
=== destination
Expand Down Expand Up @@ -11673,6 +11723,105 @@ type: keyword
--
[float]
=== orchestrator
Fields that describe the resources which container orchestrators manage or act upon.
*`orchestrator.api_version`*::
+
--
API version being used to carry out the action
type: keyword
example: v1beta1
--
*`orchestrator.cluster.name`*::
+
--
Name of the cluster.
type: keyword
--
*`orchestrator.cluster.url`*::
+
--
URL of the API used to manage the cluster.
type: keyword
--
*`orchestrator.cluster.version`*::
+
--
The version of the cluster.
type: keyword
--
*`orchestrator.namespace`*::
+
--
Namespace in which the action is taking place.
type: keyword
example: kube-system
--
*`orchestrator.organization`*::
+
--
Organization affected by the event (for multi-tenant orchestrator setups).
type: keyword
example: elastic
--
*`orchestrator.resource.name`*::
+
--
Name of the resource being acted upon.
type: keyword
example: test-pod-cdcws
--
*`orchestrator.resource.type`*::
+
--
Type of resource being acted upon.
type: keyword
example: service
--
*`orchestrator.type`*::
+
--
Orchestrator cluster type (e.g. kubernetes, nomad or cloudfoundry).
type: keyword
example: kubernetes
--
[float]
=== organization
Expand Down
2 changes: 1 addition & 1 deletion docs/version.asciidoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// doc-branch can be: master, 8.0, 8.1, etc.
:doc-branch: 7.x
:go-version: 1.15.9
:go-version: 1.16.4
:python: 3.7
:docker: 1.12
:docker-compose: 1.11
Expand Down
Loading

0 comments on commit 6bfad17

Please sign in to comment.