diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 062fd6d7..e5a46ee7 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -6,6 +6,7 @@ on: push: paths: - 'integration_tests/**' + - '.github/**' jobs: @@ -47,18 +48,14 @@ jobs: uses: actions/checkout@v2 with: repository: DataDog/datadog-agent - #ref: refs/heads/release/lambda-extension-v9 - ref: refs/heads/maxday/integration-test # todo : change after merge of current PRs + ref: refs/heads/release/lambda-extension-v9 # todo : change after merge of current PRs path: "datadog-agent" - name: Build the layer run: ./scripts/build_binary_and_layer.sh - - name: Run tests env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - # Todo : retrieve this layer version automatically from AWS - NODE_LAYER_VERSION: 55 run: cp -R ../.layers . && ./integration_tests/run.sh \ No newline at end of file diff --git a/integration_tests/recorder-extension/a_recorder b/integration_tests/recorder-extension/a_recorder deleted file mode 100644 index 2739d276..00000000 --- a/integration_tests/recorder-extension/a_recorder +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -exec "/opt/extensions/src/index.js" diff --git a/integration_tests/recorder-extension/go.mod b/integration_tests/recorder-extension/go.mod new file mode 100644 index 00000000..1e8048ff --- /dev/null +++ b/integration_tests/recorder-extension/go.mod @@ -0,0 +1,9 @@ +module datadog-lambda-extension/recorder-extension + +go 1.14 + +require ( + github.com/DataDog/agent-payload v4.73.0+incompatible // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/gorilla/mux v1.8.0 // indirect +) diff --git a/integration_tests/recorder-extension/go.sum b/integration_tests/recorder-extension/go.sum new file mode 100644 index 00000000..55126761 --- /dev/null +++ b/integration_tests/recorder-extension/go.sum @@ -0,0 +1,35 @@ +github.com/DataDog/agent-payload v4.73.0+incompatible h1:SnHWa/x6fkyEw0ZnlWZOeEfE6caBQtviwoaJx2Rvuy4= +github.com/DataDog/agent-payload v4.73.0+incompatible/go.mod h1:/2RW4IC/2z54jtB6RLgq5UtVI1TsX0joDRjKbkLT+mk= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= +github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/integration_tests/recorder-extension/main.go b/integration_tests/recorder-extension/main.go new file mode 100644 index 00000000..1bd70f27 --- /dev/null +++ b/integration_tests/recorder-extension/main.go @@ -0,0 +1,264 @@ +// Unless explicitly stated otherwise all files in this repository are licensed +// under the Apache License Version 2.0. +// This product includes software developed at Datadog (https://www.datadoghq.com/). +// Copyright 2016-present Datadog, Inc. + +// Some parts of this file are taken from : https://github.com/aws-samples/aws-lambda-extensions/tree/main/go-example-extension + +package main + +import ( + "bytes" + "compress/gzip" + "context" + "encoding/json" + "fmt" + "io/ioutil" + "net/http" + "os" + "os/signal" + "sort" + "strings" + "syscall" + "time" + + "github.com/DataDog/agent-payload/gogen" +) + +const extensionName = "recorder-extension" // extension name has to match the filename +var extensionClient = NewClient(os.Getenv("AWS_LAMBDA_RUNTIME_API")) + +func main() { + ctx, cancel := context.WithCancel(context.Background()) + + sigs := make(chan os.Signal, 1) + signal.Notify(sigs, syscall.SIGTERM, syscall.SIGINT) + go func() { + <-sigs + cancel() + }() + + err := extensionClient.Register(ctx, extensionName) + if err != nil { + panic(err) + } + + // port 8080 is used by the Lambda Invoke API + port := "3333" + Start(port) + + // Will block until shutdown event is received or cancelled via the context. + processEvents(ctx) +} + +func processEvents(ctx context.Context) { + for { + select { + case <-ctx.Done(): + return + default: + res, err := extensionClient.NextEvent(ctx) + if err != nil { + return + } + if res.EventType == Shutdown { + time.Sleep(1900 * time.Millisecond) + return + } + } + } +} + +// JSON representation of a message. +type jsonServerlessPayload struct { + Message jsonServerlessMessage `json:"message"` + Status string `json:"status"` + Timestamp int64 `json:"timestamp"` + Hostname string `json:"hostname"` + Service string `json:"service"` + Source string `json:"ddsource"` + Tags string `json:"ddtags"` +} + +type jsonServerlessMessage struct { + Message string `json:"message"` + Lambda *jsonServerlessLambda `json:"lambda,omitempty"` +} + +type jsonServerlessLambda struct { + ARN string `json:"arn"` + RequestID string `json:"request_id,omitempty"` +} + +// NextEventResponse is the response for /event/next +type NextEventResponse struct { + EventType EventType `json:"eventType"` +} + +// EventType represents the type of events recieved from /event/next +type EventType string + +const ( + // Shutdown is a shutdown event for the environment + Shutdown EventType = "SHUTDOWN" + + extensionNameHeader = "Lambda-Extension-Name" + extensionIdentiferHeader = "Lambda-Extension-Identifier" +) + +// Client is a simple client for the Lambda Extensions API +type Client struct { + baseURL string + httpClient *http.Client + extensionID string +} + +// NewClient returns a Lambda Extensions API client +func NewClient(awsLambdaRuntimeAPI string) *Client { + baseURL := fmt.Sprintf("http://%s/2020-01-01/extension", awsLambdaRuntimeAPI) + return &Client{ + baseURL: baseURL, + httpClient: &http.Client{}, + } +} + +// Register will register the extension with the Extensions API +func (e *Client) Register(ctx context.Context, filename string) error { + const action = "/register" + url := e.baseURL + action + + reqBody, err := json.Marshal(map[string]interface{}{ + "events": []EventType{Shutdown}, + }) + if err != nil { + return err + } + httpReq, err := http.NewRequestWithContext(ctx, "POST", url, bytes.NewBuffer(reqBody)) + if err != nil { + return err + } + httpReq.Header.Set(extensionNameHeader, filename) + httpRes, err := e.httpClient.Do(httpReq) + if err != nil { + return err + } + if httpRes.StatusCode != 200 { + return fmt.Errorf("request failed with status %s", httpRes.Status) + } + defer httpRes.Body.Close() + e.extensionID = httpRes.Header.Get(extensionIdentiferHeader) + return nil +} + +// NextEvent blocks while long polling for the next lambda invoke or shutdown +func (e *Client) NextEvent(ctx context.Context) (*NextEventResponse, error) { + const action = "/event/next" + url := e.baseURL + action + + httpReq, err := http.NewRequestWithContext(ctx, "GET", url, nil) + if err != nil { + return nil, err + } + httpReq.Header.Set(extensionIdentiferHeader, e.extensionID) + httpRes, err := e.httpClient.Do(httpReq) + if err != nil { + return nil, err + } + if httpRes.StatusCode != 200 { + return nil, fmt.Errorf("request failed with status %s", httpRes.Status) + } + defer httpRes.Body.Close() + body, err := ioutil.ReadAll(httpRes.Body) + if err != nil { + return nil, err + } + res := NextEventResponse{} + err = json.Unmarshal(body, &res) + if err != nil { + return nil, err + } + return &res, nil +} + +// Start is starting the http server to receive logs, traces and metrics +func Start(port string) { + go startHTTPServer(port) +} + +func startHTTPServer(port string) { + http.HandleFunc("/api/beta/sketches", func(w http.ResponseWriter, r *http.Request) { + body, err := ioutil.ReadAll(r.Body) + if err != nil { + fmt.Printf("Error while reading HTTP request body: %s \n", err) + return + } + pl := new(gogen.SketchPayload) + if err := pl.Unmarshal(body); err != nil { + fmt.Printf("Error while unmarshalling sketches %s \n", err) + return + } + + for _, sketch := range pl.Sketches { + jsonSketch, err := json.Marshal(sketch) + if err != nil { + fmt.Printf("Error while JSON encoding the sketch") + } + fmt.Printf("[sketch] %s \n", string(jsonSketch)) + } + }) + + http.HandleFunc("/v1/input", func(w http.ResponseWriter, r *http.Request) { + body, err := ioutil.ReadAll(r.Body) + if err != nil { + return + } + decompressedBody, err := decompress(body) + if err != nil { + return + } + var messages []jsonServerlessPayload + if err := json.Unmarshal(decompressedBody, &messages); err != nil { + return + } + for _, log := range messages { + sortedTags := strings.Split(log.Tags, ",") + sort.Strings(sortedTags) + log.Tags = strings.Join(sortedTags, ",") + jsonLog, err := json.Marshal(log) + if err != nil { + fmt.Printf("Error while JSON encoding the Log") + } + stringJsonLog := string(jsonLog) + // if we log an unwanted log, it will be available in the next log api payload -> infinite loop + if !strings.Contains(stringJsonLog, "[log]") && !strings.Contains(stringJsonLog, "[metric]") { + fmt.Printf("[log] %s\n", stringJsonLog) + } + } + }) + + http.HandleFunc("/api/v1/series", func(w http.ResponseWriter, r *http.Request) { + }) + + http.HandleFunc("/api/v1/check_run", func(w http.ResponseWriter, r *http.Request) { + }) + + err := http.ListenAndServe(":"+port, nil) + if err != nil { + panic(err) + } +} + +func decompress(payload []byte) ([]byte, error) { + reader, err := gzip.NewReader(bytes.NewReader(payload)) + if err != nil { + return nil, err + } + + var buffer bytes.Buffer + _, err = buffer.ReadFrom(reader) + if err != nil { + return nil, err + } + + return buffer.Bytes(), nil +} diff --git a/integration_tests/recorder-extension/package.json b/integration_tests/recorder-extension/package.json deleted file mode 100644 index 5b3e0e4b..00000000 --- a/integration_tests/recorder-extension/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "recorder-extension", - "version": "1.0.0", - "main": "index.js", - "dependencies": { - "express": "^4.17.1", - "node-fetch": "^2.6.1", - "protobufjs": "^6.11.2" - } - } \ No newline at end of file diff --git a/integration_tests/recorder-extension/src/agent_payload.proto b/integration_tests/recorder-extension/src/agent_payload.proto deleted file mode 100644 index 8f3a7ab7..00000000 --- a/integration_tests/recorder-extension/src/agent_payload.proto +++ /dev/null @@ -1,50 +0,0 @@ -syntax = "proto3"; - -// file partially copied from https://github.com/DataDog/agent-payload/blob/master/proto/metrics/agent_payload.proto - -package datadog.agentpayload; - -message CommonMetadata { - string agent_version = 1; - string timezone = 2; - double current_epoch = 3; - string internal_ip = 4; - string public_ip = 5; - string api_key = 6; -} - -message SketchPayload { - message Sketch { - message Distribution { - int64 ts = 1; - int64 cnt = 2; - double min = 3; - double max = 4; - double avg = 5; - double sum = 6; - repeated double v = 7; - repeated uint32 g = 8; - repeated uint32 delta = 9; - repeated double buf = 10; - } - message Dogsketch { - int64 ts = 1; - int64 cnt = 2; - double min = 3; - double max = 4; - double avg = 5; - double sum = 6; - repeated sint32 k = 7; - repeated uint32 n = 8; - } - string metric = 1; - string host = 2; - repeated Distribution distributions = 3 [(gogoproto.nullable) = false]; - repeated string tags = 4; - reserved 5, 6; - reserved "distributionsK", "distributionsC"; - repeated Dogsketch dogsketches = 7 [(gogoproto.nullable) = false]; - } - repeated Sketch sketches = 1 [(gogoproto.nullable) = false]; - CommonMetadata metadata = 2 [(gogoproto.nullable) = false]; -} \ No newline at end of file diff --git a/integration_tests/recorder-extension/src/index.js b/integration_tests/recorder-extension/src/index.js deleted file mode 100755 index b03740dc..00000000 --- a/integration_tests/recorder-extension/src/index.js +++ /dev/null @@ -1,126 +0,0 @@ -#!/usr/bin/env node - -const express = require('express'); -const fetch = require('node-fetch'); -const bodyParser = require('body-parser'); -const protobuf = require('protobufjs'); - -const BASE_URL = `http://${process.env.AWS_LAMBDA_RUNTIME_API}/2020-01-01/extension`; -const SHUTDOWN_EVENT = 'SHUTDOWN'; - -const handleShutdown = async () => { - console.log('SHUTDOWN received in recorder'); - //making sure that the server won't be closed when the extension will send data - await new Promise(r => setTimeout(r, 1000)); - console.log('SHUTDOWN end'); -} - -async function register() { - const res = await fetch(`${BASE_URL}/register`, { - method: 'post', - body: JSON.stringify({ - 'events': [ - SHUTDOWN_EVENT - ], - }), - headers: { - 'Content-Type': 'application/json', - 'Lambda-Extension-Name': 'a_recorder', - } - }); - - if (!res.ok) { - console.error('register failed', await res.text()); - } - return res.headers.get('lambda-extension-identifier'); -} - -async function next(extensionId) { - const res = await fetch(`${BASE_URL}/event/next`, { - method: 'get', - headers: { - 'Content-Type': 'application/json', - 'Lambda-Extension-Identifier': extensionId, - } - }); - - if (!res.ok) { - console.error('next failed', await res.text()); - return null; - } - - return await res.json(); -} - -(async function main() { - - const app = express(); - const options = { - inflate: true, - limit: '300kb', - type: 'application/x-protobuf' - }; - - app.use(bodyParser.raw(options)); - app.use(bodyParser.json()); - - const extensionId = await register(); - - const port = 3333; - - app.get('/*', (req, res) => { - console.log("GET", req.url); - res.sendStatus(200); - }); - - app.post('/api/beta/sketches*', async (req, res) => { - const root = await protobuf.load('/opt/extensions/src/agent_payload.proto'); - const SketchPayload = root.lookupType('datadog.agentpayload.SketchPayload'); - const obj = SketchPayload.decode(req.body); - for(let i = 0; i < obj.sketches.length; ++i) { - console.log("[sketch]", JSON.stringify(obj.sketches[i])); - } - res.sendStatus(200); - }); - - - app.post('/v1/input', async (req, res) => { - if(JSON.stringify(req.body) !== '{}') { // to avoid printing empty logs due to the connectivity test - for(let i = 0; i < req.body.length; ++i) { - //sort tags to avoid flaky tests - const originalTags = req.body[i].ddtags; - const sortedTags = originalTags.split(","); - sortedTags.sort(); - // reset tags once sorted - req.body[i].ddtags = sortedTags.join(",") - const logString = JSON.stringify(req.body[i]); - if(logString.indexOf("[sketch]") === -1 && logString.indexOf("[log]") === -1) { // if we log an unwanted log, it will be availble in the next log api payload -> infinite loop - const tags = logString - console.log("[log]", logString); - } - } - } - res.sendStatus(200); - }); - - app.post('/*', (req, res) => { - console.log("POST", req.url); - res.sendStatus(200); - }); - - app.listen(port); - - process.on('SIGINT', async () => await handleShutdown()); - process.on('SIGTERM', async () => await handleShutdown()); - - while (true) { - const event = await next(extensionId); - if(event.eventType === SHUTDOWN_EVENT) { - await handleShutdown(); - break; - } else { - await handleShutdown(); - throw new Error('Unexpected event'); - } - } -})(); diff --git a/integration_tests/recorder-extension/src/package.json b/integration_tests/recorder-extension/src/package.json deleted file mode 100644 index bc2d93ee..00000000 --- a/integration_tests/recorder-extension/src/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "recorder-extension", - "version": "1.0.0", - "main": "index.js", - "dependencies": { - "express": "^4.17.1", - "node-fetch": "^2.6.1", - "protobufjs": "^6.11.2" - } -} diff --git a/integration_tests/recorder-extension/src/yarn.lock b/integration_tests/recorder-extension/src/yarn.lock deleted file mode 100644 index f5bff1d0..00000000 --- a/integration_tests/recorder-extension/src/yarn.lock +++ /dev/null @@ -1,460 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" - integrity sha1-m4sMxmPWaafY9vXQiToU00jzD78= - -"@protobufjs/base64@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz#4c85730e59b9a1f1f349047dbf24296034bb2735" - integrity sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg== - -"@protobufjs/codegen@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@protobufjs/codegen/-/codegen-2.0.4.tgz#7ef37f0d010fb028ad1ad59722e506d9262815cb" - integrity sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg== - -"@protobufjs/eventemitter@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz#355cbc98bafad5978f9ed095f397621f1d066b70" - integrity sha1-NVy8mLr61ZePntCV85diHx0Ga3A= - -"@protobufjs/fetch@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/fetch/-/fetch-1.1.0.tgz#ba99fb598614af65700c1619ff06d454b0d84c45" - integrity sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU= - dependencies: - "@protobufjs/aspromise" "^1.1.1" - "@protobufjs/inquire" "^1.1.0" - -"@protobufjs/float@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@protobufjs/float/-/float-1.0.2.tgz#5e9e1abdcb73fc0a7cb8b291df78c8cbd97b87d1" - integrity sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E= - -"@protobufjs/inquire@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/inquire/-/inquire-1.1.0.tgz#ff200e3e7cf2429e2dcafc1140828e8cc638f089" - integrity sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik= - -"@protobufjs/path@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/path/-/path-1.1.2.tgz#6cc2b20c5c9ad6ad0dccfd21ca7673d8d7fbf68d" - integrity sha1-bMKyDFya1q0NzP0hynZz2Nf79o0= - -"@protobufjs/pool@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/pool/-/pool-1.1.0.tgz#09fd15f2d6d3abfa9b65bc366506d6ad7846ff54" - integrity sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q= - -"@protobufjs/utf8@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" - integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA= - -"@types/long@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.1.tgz#459c65fa1867dafe6a8f322c4c51695663cc55e9" - integrity sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w== - -"@types/node@>=13.7.0": - version "15.0.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-15.0.2.tgz#51e9c0920d1b45936ea04341aa3e2e58d339fb67" - integrity sha512-p68+a+KoxpoB47015IeYZYRrdqMUcpbK8re/zpFB8Ld46LHC1lPEbp3EXgkEhAYEcPvjJF6ZO+869SQ0aH1dcA== - -accepts@~1.3.7: - version "1.3.7" - resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd" - integrity sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA== - dependencies: - mime-types "~2.1.24" - negotiator "0.6.2" - -array-flatten@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" - integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= - -body-parser@1.19.0: - version "1.19.0" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a" - integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw== - dependencies: - bytes "3.1.0" - content-type "~1.0.4" - debug "2.6.9" - depd "~1.1.2" - http-errors "1.7.2" - iconv-lite "0.4.24" - on-finished "~2.3.0" - qs "6.7.0" - raw-body "2.4.0" - type-is "~1.6.17" - -bytes@3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" - integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== - -content-disposition@0.5.3: - version "0.5.3" - resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" - integrity sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g== - dependencies: - safe-buffer "5.1.2" - -content-type@~1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" - integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== - -cookie-signature@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" - integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw= - -cookie@0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" - integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== - -debug@2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -depd@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" - integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= - -destroy@~1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" - integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= - -ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= - -encodeurl@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" - integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= - -escape-html@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" - integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= - -etag@~1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" - integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= - -express@^4.17.1: - version "4.17.1" - resolved "https://registry.yarnpkg.com/express/-/express-4.17.1.tgz#4491fc38605cf51f8629d39c2b5d026f98a4c134" - integrity sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g== - dependencies: - accepts "~1.3.7" - array-flatten "1.1.1" - body-parser "1.19.0" - content-disposition "0.5.3" - content-type "~1.0.4" - cookie "0.4.0" - cookie-signature "1.0.6" - debug "2.6.9" - depd "~1.1.2" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - finalhandler "~1.1.2" - fresh "0.5.2" - merge-descriptors "1.0.1" - methods "~1.1.2" - on-finished "~2.3.0" - parseurl "~1.3.3" - path-to-regexp "0.1.7" - proxy-addr "~2.0.5" - qs "6.7.0" - range-parser "~1.2.1" - safe-buffer "5.1.2" - send "0.17.1" - serve-static "1.14.1" - setprototypeof "1.1.1" - statuses "~1.5.0" - type-is "~1.6.18" - utils-merge "1.0.1" - vary "~1.1.2" - -finalhandler@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" - integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== - dependencies: - debug "2.6.9" - encodeurl "~1.0.2" - escape-html "~1.0.3" - on-finished "~2.3.0" - parseurl "~1.3.3" - statuses "~1.5.0" - unpipe "~1.0.0" - -forwarded@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" - integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= - -fresh@0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" - integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= - -http-errors@1.7.2: - version "1.7.2" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f" - integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg== - dependencies: - depd "~1.1.2" - inherits "2.0.3" - setprototypeof "1.1.1" - statuses ">= 1.5.0 < 2" - toidentifier "1.0.0" - -http-errors@~1.7.2: - version "1.7.3" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06" - integrity sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw== - dependencies: - depd "~1.1.2" - inherits "2.0.4" - setprototypeof "1.1.1" - statuses ">= 1.5.0 < 2" - toidentifier "1.0.0" - -iconv-lite@0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -inherits@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= - -inherits@2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -ipaddr.js@1.9.1: - version "1.9.1" - resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" - integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== - -long@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" - integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== - -media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" - integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= - -merge-descriptors@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" - integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= - -methods@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" - integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= - -mime-db@1.47.0: - version "1.47.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" - integrity sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw== - -mime-types@~2.1.24: - version "2.1.30" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" - integrity sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg== - dependencies: - mime-db "1.47.0" - -mime@1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" - integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - -ms@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" - integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== - -negotiator@0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" - integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== - -node-fetch@^2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" - integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw== - -on-finished@~2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= - dependencies: - ee-first "1.1.1" - -parseurl@~1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" - integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== - -path-to-regexp@0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" - integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= - -protobufjs@^6.11.2: - version "6.11.2" - resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.11.2.tgz#de39fabd4ed32beaa08e9bb1e30d08544c1edf8b" - integrity sha512-4BQJoPooKJl2G9j3XftkIXjoC9C0Av2NOrWmbLWT1vH32GcSUHjM0Arra6UfTsVyfMAuFzaLucXn1sadxJydAw== - dependencies: - "@protobufjs/aspromise" "^1.1.2" - "@protobufjs/base64" "^1.1.2" - "@protobufjs/codegen" "^2.0.4" - "@protobufjs/eventemitter" "^1.1.0" - "@protobufjs/fetch" "^1.1.0" - "@protobufjs/float" "^1.0.2" - "@protobufjs/inquire" "^1.1.0" - "@protobufjs/path" "^1.1.2" - "@protobufjs/pool" "^1.1.0" - "@protobufjs/utf8" "^1.1.0" - "@types/long" "^4.0.1" - "@types/node" ">=13.7.0" - long "^4.0.0" - -proxy-addr@~2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.6.tgz#fdc2336505447d3f2f2c638ed272caf614bbb2bf" - integrity sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw== - dependencies: - forwarded "~0.1.2" - ipaddr.js "1.9.1" - -qs@6.7.0: - version "6.7.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" - integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== - -range-parser@~1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" - integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== - -raw-body@2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332" - integrity sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q== - dependencies: - bytes "3.1.0" - http-errors "1.7.2" - iconv-lite "0.4.24" - unpipe "1.0.0" - -safe-buffer@5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -"safer-buffer@>= 2.1.2 < 3": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -send@0.17.1: - version "0.17.1" - resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" - integrity sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg== - dependencies: - debug "2.6.9" - depd "~1.1.2" - destroy "~1.0.4" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - fresh "0.5.2" - http-errors "~1.7.2" - mime "1.6.0" - ms "2.1.1" - on-finished "~2.3.0" - range-parser "~1.2.1" - statuses "~1.5.0" - -serve-static@1.14.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" - integrity sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg== - dependencies: - encodeurl "~1.0.2" - escape-html "~1.0.3" - parseurl "~1.3.3" - send "0.17.1" - -setprototypeof@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" - integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== - -"statuses@>= 1.5.0 < 2", statuses@~1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" - integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= - -toidentifier@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" - integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== - -type-is@~1.6.17, type-is@~1.6.18: - version "1.6.18" - resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" - integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== - dependencies: - media-typer "0.3.0" - mime-types "~2.1.24" - -unpipe@1.0.0, unpipe@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= - -utils-merge@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= - -vary@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" - integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= diff --git a/integration_tests/recorder-extension/yarn.lock b/integration_tests/recorder-extension/yarn.lock deleted file mode 100644 index 8764a637..00000000 --- a/integration_tests/recorder-extension/yarn.lock +++ /dev/null @@ -1,460 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" - integrity sha1-m4sMxmPWaafY9vXQiToU00jzD78= - -"@protobufjs/base64@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz#4c85730e59b9a1f1f349047dbf24296034bb2735" - integrity sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg== - -"@protobufjs/codegen@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@protobufjs/codegen/-/codegen-2.0.4.tgz#7ef37f0d010fb028ad1ad59722e506d9262815cb" - integrity sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg== - -"@protobufjs/eventemitter@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz#355cbc98bafad5978f9ed095f397621f1d066b70" - integrity sha1-NVy8mLr61ZePntCV85diHx0Ga3A= - -"@protobufjs/fetch@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/fetch/-/fetch-1.1.0.tgz#ba99fb598614af65700c1619ff06d454b0d84c45" - integrity sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU= - dependencies: - "@protobufjs/aspromise" "^1.1.1" - "@protobufjs/inquire" "^1.1.0" - -"@protobufjs/float@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@protobufjs/float/-/float-1.0.2.tgz#5e9e1abdcb73fc0a7cb8b291df78c8cbd97b87d1" - integrity sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E= - -"@protobufjs/inquire@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/inquire/-/inquire-1.1.0.tgz#ff200e3e7cf2429e2dcafc1140828e8cc638f089" - integrity sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik= - -"@protobufjs/path@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/path/-/path-1.1.2.tgz#6cc2b20c5c9ad6ad0dccfd21ca7673d8d7fbf68d" - integrity sha1-bMKyDFya1q0NzP0hynZz2Nf79o0= - -"@protobufjs/pool@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/pool/-/pool-1.1.0.tgz#09fd15f2d6d3abfa9b65bc366506d6ad7846ff54" - integrity sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q= - -"@protobufjs/utf8@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" - integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA= - -"@types/long@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.1.tgz#459c65fa1867dafe6a8f322c4c51695663cc55e9" - integrity sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w== - -"@types/node@>=13.7.0": - version "15.12.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-15.12.2.tgz#1f2b42c4be7156ff4a6f914b2fb03d05fa84e38d" - integrity sha512-zjQ69G564OCIWIOHSXyQEEDpdpGl+G348RAKY0XXy9Z5kU9Vzv1GMNnkar/ZJ8dzXB3COzD9Mo9NtRZ4xfgUww== - -accepts@~1.3.7: - version "1.3.7" - resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd" - integrity sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA== - dependencies: - mime-types "~2.1.24" - negotiator "0.6.2" - -array-flatten@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" - integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= - -body-parser@1.19.0: - version "1.19.0" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a" - integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw== - dependencies: - bytes "3.1.0" - content-type "~1.0.4" - debug "2.6.9" - depd "~1.1.2" - http-errors "1.7.2" - iconv-lite "0.4.24" - on-finished "~2.3.0" - qs "6.7.0" - raw-body "2.4.0" - type-is "~1.6.17" - -bytes@3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" - integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== - -content-disposition@0.5.3: - version "0.5.3" - resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" - integrity sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g== - dependencies: - safe-buffer "5.1.2" - -content-type@~1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" - integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== - -cookie-signature@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" - integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw= - -cookie@0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" - integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== - -debug@2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -depd@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" - integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= - -destroy@~1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" - integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= - -ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= - -encodeurl@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" - integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= - -escape-html@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" - integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= - -etag@~1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" - integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= - -express@^4.17.1: - version "4.17.1" - resolved "https://registry.yarnpkg.com/express/-/express-4.17.1.tgz#4491fc38605cf51f8629d39c2b5d026f98a4c134" - integrity sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g== - dependencies: - accepts "~1.3.7" - array-flatten "1.1.1" - body-parser "1.19.0" - content-disposition "0.5.3" - content-type "~1.0.4" - cookie "0.4.0" - cookie-signature "1.0.6" - debug "2.6.9" - depd "~1.1.2" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - finalhandler "~1.1.2" - fresh "0.5.2" - merge-descriptors "1.0.1" - methods "~1.1.2" - on-finished "~2.3.0" - parseurl "~1.3.3" - path-to-regexp "0.1.7" - proxy-addr "~2.0.5" - qs "6.7.0" - range-parser "~1.2.1" - safe-buffer "5.1.2" - send "0.17.1" - serve-static "1.14.1" - setprototypeof "1.1.1" - statuses "~1.5.0" - type-is "~1.6.18" - utils-merge "1.0.1" - vary "~1.1.2" - -finalhandler@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" - integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== - dependencies: - debug "2.6.9" - encodeurl "~1.0.2" - escape-html "~1.0.3" - on-finished "~2.3.0" - parseurl "~1.3.3" - statuses "~1.5.0" - unpipe "~1.0.0" - -forwarded@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" - integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== - -fresh@0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" - integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= - -http-errors@1.7.2: - version "1.7.2" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f" - integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg== - dependencies: - depd "~1.1.2" - inherits "2.0.3" - setprototypeof "1.1.1" - statuses ">= 1.5.0 < 2" - toidentifier "1.0.0" - -http-errors@~1.7.2: - version "1.7.3" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06" - integrity sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw== - dependencies: - depd "~1.1.2" - inherits "2.0.4" - setprototypeof "1.1.1" - statuses ">= 1.5.0 < 2" - toidentifier "1.0.0" - -iconv-lite@0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -inherits@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= - -inherits@2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -ipaddr.js@1.9.1: - version "1.9.1" - resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" - integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== - -long@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" - integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== - -media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" - integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= - -merge-descriptors@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" - integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= - -methods@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" - integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= - -mime-db@1.48.0: - version "1.48.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.48.0.tgz#e35b31045dd7eada3aaad537ed88a33afbef2d1d" - integrity sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ== - -mime-types@~2.1.24: - version "2.1.31" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.31.tgz#a00d76b74317c61f9c2db2218b8e9f8e9c5c9e6b" - integrity sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg== - dependencies: - mime-db "1.48.0" - -mime@1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" - integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - -ms@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" - integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== - -negotiator@0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" - integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== - -node-fetch@^2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" - integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw== - -on-finished@~2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= - dependencies: - ee-first "1.1.1" - -parseurl@~1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" - integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== - -path-to-regexp@0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" - integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= - -protobufjs@^6.11.2: - version "6.11.2" - resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.11.2.tgz#de39fabd4ed32beaa08e9bb1e30d08544c1edf8b" - integrity sha512-4BQJoPooKJl2G9j3XftkIXjoC9C0Av2NOrWmbLWT1vH32GcSUHjM0Arra6UfTsVyfMAuFzaLucXn1sadxJydAw== - dependencies: - "@protobufjs/aspromise" "^1.1.2" - "@protobufjs/base64" "^1.1.2" - "@protobufjs/codegen" "^2.0.4" - "@protobufjs/eventemitter" "^1.1.0" - "@protobufjs/fetch" "^1.1.0" - "@protobufjs/float" "^1.0.2" - "@protobufjs/inquire" "^1.1.0" - "@protobufjs/path" "^1.1.2" - "@protobufjs/pool" "^1.1.0" - "@protobufjs/utf8" "^1.1.0" - "@types/long" "^4.0.1" - "@types/node" ">=13.7.0" - long "^4.0.0" - -proxy-addr@~2.0.5: - version "2.0.7" - resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" - integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== - dependencies: - forwarded "0.2.0" - ipaddr.js "1.9.1" - -qs@6.7.0: - version "6.7.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" - integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== - -range-parser@~1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" - integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== - -raw-body@2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332" - integrity sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q== - dependencies: - bytes "3.1.0" - http-errors "1.7.2" - iconv-lite "0.4.24" - unpipe "1.0.0" - -safe-buffer@5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -"safer-buffer@>= 2.1.2 < 3": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -send@0.17.1: - version "0.17.1" - resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" - integrity sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg== - dependencies: - debug "2.6.9" - depd "~1.1.2" - destroy "~1.0.4" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - fresh "0.5.2" - http-errors "~1.7.2" - mime "1.6.0" - ms "2.1.1" - on-finished "~2.3.0" - range-parser "~1.2.1" - statuses "~1.5.0" - -serve-static@1.14.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" - integrity sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg== - dependencies: - encodeurl "~1.0.2" - escape-html "~1.0.3" - parseurl "~1.3.3" - send "0.17.1" - -setprototypeof@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" - integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== - -"statuses@>= 1.5.0 < 2", statuses@~1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" - integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= - -toidentifier@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" - integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== - -type-is@~1.6.17, type-is@~1.6.18: - version "1.6.18" - resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" - integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== - dependencies: - media-typer "0.3.0" - mime-types "~2.1.24" - -unpipe@1.0.0, unpipe@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= - -utils-merge@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= - -vary@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" - integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= diff --git a/integration_tests/run.sh b/integration_tests/run.sh index 53514c8d..06064733 100755 --- a/integration_tests/run.sh +++ b/integration_tests/run.sh @@ -1,6 +1,6 @@ #!/bin/bash -LOGS_WAIT_SECONDS=30 +LOGS_WAIT_SECONDS=45 set -e @@ -8,19 +8,33 @@ script_utc_start_time=$(date -u +"%Y%m%dT%H%M%S") cd "./integration_tests" -#zip extension +#build and zip extension cd recorder-extension -yarn install -mkdir -p extensions -cp -R src extensions -cp -R node_modules extensions -cp a_recorder extensions -zip -rq ext.zip extensions -x ".*" -x "__MACOSX" -x "extensions/.*" + GOOS=linux GOARCH=amd64 go build -o extensions/recorder-extension main.go + zip -rq ext.zip extensions/* -x ".*" -x "__MACOSX" -x "extensions/.*" cd .. +#get the latest layer vesion number +function getLatestLayerVersion() { + layerName=$1 + lastVersion=$(aws lambda list-layer-versions --layer-name $layerName --region sa-east-1 | jq -r ".LayerVersions | .[0] | .Version") + if [ lastVersion == "null" ]; then + exit 1 + else + echo $lastVersion + fi +} + if [ -z "$NODE_LAYER_VERSION" ]; then - echo "NODE_LAYER_VERSION not found " - exit 1 + echo "NODE_LAYER_VERSION not found, getting the latest one" + export NODE_LAYER_VERSION=$(getLatestLayerVersion "Datadog-Node14-x") + echo "NODE_LAYER_VERSION set to : $NODE_LAYER_VERSION" +fi + +if [ -z "$PYTHON_LAYER_VERSION" ]; then + echo "PYTHON_LAYER_VERSION not found, getting the latest one" + export PYTHON_LAYER_VERSION=$(getLatestLayerVersion "Datadog-Python38") + echo "PYTHON_LAYER_VERSION set to : $PYTHON_LAYER_VERSION" fi # random 8-character ID to avoid collisions with other runs @@ -30,6 +44,7 @@ stage=$(xxd -l 4 -c 4 -p < /dev/random) function remove_stack() { echo "Removing stack for stage : ${stage}" NODE_LAYER_VERSION=${NODE_LAYER_VERSION} \ + PYTHON_LAYER_VERSION=${PYTHON_LAYER_VERSION} \ serverless remove --stage ${stage} } @@ -38,26 +53,28 @@ trap remove_stack EXIT # deploying the stack NODE_LAYER_VERSION=${NODE_LAYER_VERSION} \ +PYTHON_LAYER_VERSION=${PYTHON_LAYER_VERSION} \ serverless deploy --stage ${stage} # invoking functions -metric_function_names=("enhancedMetricTest" "noEnhancedMetricTest" "timeoutMetricTest") -log_function_names=("logTest") +metric_function_names=("enhanced-metric-node" "enhanced-metric-python" "no-enhanced-metric-node" "no-enhanced-metric-python" "timeout-node" "timeout-python") +log_function_names=("log-node" "log-python") +trace_function_names=() - -all_functions=("${metric_function_names[@]}" "${log_function_names[@]}") +all_functions=("${metric_function_names[@]}" "${log_function_names[@]}" "${trace_function_names[@]}") set +e # Don't exit this script if an invocation fails or there's a diff for function_name in "${all_functions[@]}"; do NODE_LAYER_VERSION=${NODE_LAYER_VERSION} \ + PYTHON_LAYER_VERSION=${PYTHON_LAYER_VERSION} \ serverless invoke --stage ${stage} -f ${function_name} # two invocations are needed since enhanced metrics are computed with the REPORT log line (which is trigered at the end of the first invocation) return_value=$(serverless invoke --stage ${stage} -f ${function_name}) # Compare new return value to snapshot diff_output=$(echo "$return_value" | diff - "./snapshots/expectedInvocationResult") - if [ $? -eq 1 ] && [ "$function_name" != "timeoutMetricTest" ]; then + if [ $? -eq 1 ] && [ ${function_name:0:7} != timeout ]; then echo "Failed: Return value for $function_name does not match snapshot:" echo "$diff_output" mismatch_found=true @@ -73,7 +90,7 @@ for function_name in "${all_functions[@]}"; do echo "Fetching logs for ${function_name} on ${stage}" retry_counter=0 while [ $retry_counter -lt 10 ]; do - raw_logs=$(NODE_LAYER_VERSION=${NODE_LAYER_VERSION} serverless logs --stage ${stage} -f $function_name --startTime $script_utc_start_time) + raw_logs=$(NODE_LAYER_VERSION=${NODE_LAYER_VERSION} PYTHON_LAYER_VERSION=${PYTHON_LAYER_VERSION} serverless logs --stage ${stage} -f $function_name --startTime $script_utc_start_time) fetch_logs_exit_code=$? if [ $fetch_logs_exit_code -eq 1 ]; then echo "Retrying fetch logs for $function_name..." @@ -89,15 +106,17 @@ for function_name in "${all_functions[@]}"; do logs=$( echo "$raw_logs" | \ grep "\[sketch\]" | \ - perl -p -e "s/(ts\":\")[0-9]{10}/\1XXX/g" | \ - perl -p -e "s/(min\":)[0-9\.]{2,20}/\1XXX/g" | \ - perl -p -e "s/(max\":)[0-9\.]{2,20}/\1XXX/g" | \ - perl -p -e "s/(cnt\":)[0-9\.]{2,20}/\1XXX/g" | \ - perl -p -e "s/(avg\":)[0-9\.]{2,20}/\1XXX/g" | \ - perl -p -e "s/(sum\":)[0-9\.]{2,20}/\1XXX/g" | \ - perl -p -e "s/(k\":\[)[0-9\.]{1,20}/\1XXX/g" | \ + perl -p -e "s/(ts\":)[0-9]{10}/\1XXX/g" | \ + perl -p -e "s/(min\":)[0-9\.e\-]{2,20}/\1XXX/g" | \ + perl -p -e "s/(max\":)[0-9\.e\-]{2,20}/\1XXX/g" | \ + perl -p -e "s/(cnt\":)[0-9\.e\-]{2,20}/\1XXX/g" | \ + perl -p -e "s/(avg\":)[0-9\.e\-]{2,20}/\1XXX/g" | \ + perl -p -e "s/(sum\":)[0-9\.e\-]{2,20}/\1XXX/g" | \ + perl -p -e "s/(k\":\[)[0-9\.e\-]{1,20}/\1XXX/g" | \ perl -p -e "s/(datadog-nodev)[0-9]+\.[0-9]+\.[0-9]+/\1X\.X\.X/g" | \ perl -p -e "s/(datadog_lambda:v)[0-9]+\.[0-9]+\.[0-9]+/\1X\.X\.X/g" | \ + perl -p -e "s/(dd_lambda_layer:datadog-python)[0-9_]+\.[0-9]+\.[0-9]+/\1X\.X\.X/g" | \ + perl -p -e "s/(serverless.lambda-extension.integration-test.count)[0-9\.]+/\1/g" | \ perl -p -e "s/$stage/XXXXXX/g" | \ sort ) @@ -105,11 +124,13 @@ for function_name in "${all_functions[@]}"; do logs=$( echo "$raw_logs" | \ grep "\[log\]" | \ - perl -p -e "s/(timestamp\":)[0-9]{13}/\1XXX/g" | \ - perl -p -e "s/(\"REPORT |START |END |HTTP ).*/\1XXX\"}}/g" | \ - perl -p -e "s/(request_id\":\")[a-zA-Z0-9\-,]+/\1XXX/g"| \ - perl -p -e "s/$stage/XXXXXX/g" | \ - perl -p -e "s/(\"message\":\").*(XXX LOG)/\1\2\3/g" + perl -p -e "s/(timestamp\":)[0-9]{13}/\1TIMESTAMP/g" | \ + perl -p -e "s/(\"REPORT |START |END ).*/\1XXX\"}}/g" | \ + perl -p -e "s/(\"HTTP ).*/\1\"}}/g" | \ + perl -p -e "s/(,\"request_id\":\")[a-zA-Z0-9\-,]+\"//g" | \ + perl -p -e "s/$stage/STAGE/g" | \ + perl -p -e "s/(\"message\":\").*(XXX LOG)/\1\2\3/g" | \ + grep XXX ) else #traces are not yet integration-tested logs=$( diff --git a/integration_tests/serverless.yml b/integration_tests/serverless.yml index b6706731..dcbe650e 100644 --- a/integration_tests/serverless.yml +++ b/integration_tests/serverless.yml @@ -1,4 +1,4 @@ -service: integration-tests-lambda-extension +service: integration-tests-extension resources: Description: "[Serverless] Integration tests application for lambda extension" @@ -38,9 +38,9 @@ layers: artifact: ../.layers/datadog_extension.zip functions: - enhancedMetricTest: - name: integration-tests-lambda-extension-${sls:stage}-enhancedMetricTest - runtime: nodejs12.x + + enhanced-metric-node: + runtime: nodejs14.x handler: src/metric.enhancedMetricTest layers: - arn:aws:lambda:${self:provider.region}:464622532012:layer:Datadog-Node14-x:${env:NODE_LAYER_VERSION} @@ -50,9 +50,20 @@ functions: DD_TAGS: tagA:valueA tagB:valueB DD_EXTRA_TAGS: tagC:valueC tagD:valueD - noEnhancedMetricTest: - name: integration-tests-lambda-extension-${sls:stage}-noEnhancedMetricTest - runtime: nodejs12.x + enhanced-metric-python: + runtime: python3.8 + handler: datadog_lambda.handler.handler + layers: + - arn:aws:lambda:${self:provider.region}:464622532012:layer:Datadog-Python38:${env:PYTHON_LAYER_VERSION} + - {Ref: RecorderExtensionLambdaLayer} + - {Ref: DatadogExtensionIntegrationTestLambdaLayer} + environment: + DD_TAGS: tagA:valueA tagB:valueB + DD_EXTRA_TAGS: tagC:valueC tagD:valueD + DD_LAMBDA_HANDLER: src/metricPython.metric + + no-enhanced-metric-node: + runtime: nodejs14.x handler: src/metric.noEnhancedMetricTest layers: - arn:aws:lambda:${self:provider.region}:464622532012:layer:Datadog-Node14-x:${env:NODE_LAYER_VERSION} @@ -61,9 +72,19 @@ functions: environment: DD_ENHANCED_METRICS: false - timeoutMetricTest: - name: integration-tests-lambda-extension-${sls:stage}-timeoutMetricTest - runtime: nodejs12.x + no-enhanced-metric-python: + runtime: python3.8 + handler: datadog_lambda.handler.handler + layers: + - arn:aws:lambda:${self:provider.region}:464622532012:layer:Datadog-Python38:${env:PYTHON_LAYER_VERSION} + - {Ref: RecorderExtensionLambdaLayer} + - {Ref: DatadogExtensionIntegrationTestLambdaLayer} + environment: + DD_ENHANCED_METRICS: false + DD_LAMBDA_HANDLER: src/metricPython.metric + + timeout-node: + runtime: nodejs14.x handler: src/metric.timeoutMetricTest layers: - arn:aws:lambda:${self:provider.region}:464622532012:layer:Datadog-Node14-x:${env:NODE_LAYER_VERSION} @@ -72,18 +93,48 @@ functions: environment: DD_LOG_LEVEL: DEBUG - logTest: - name: integration-tests-lambda-extension-${sls:stage}-logTest - runtime: nodejs12.x + timeout-python: + runtime: python3.8 + handler: datadog_lambda.handler.handler + layers: + - arn:aws:lambda:${self:provider.region}:464622532012:layer:Datadog-Python38:${env:PYTHON_LAYER_VERSION} + - {Ref: RecorderExtensionLambdaLayer} + - {Ref: DatadogExtensionIntegrationTestLambdaLayer} + environment: + DD_LOG_LEVEL: DEBUG + DD_LAMBDA_HANDLER: src/metricPython.timeout + + log-node: + runtime: nodejs14.x handler: src/log.logTest layers: - arn:aws:lambda:${self:provider.region}:464622532012:layer:Datadog-Node14-x:${env:NODE_LAYER_VERSION} - {Ref: RecorderExtensionLambdaLayer} - {Ref: DatadogExtensionIntegrationTestLambdaLayer} environment: + DD_ENHANCED_METRICS: false + DD_LOG_LEVEL: ERROR + DD_LOGS_ENABLED: true + DD_SERVERLESS_LOGS_ENABLED: true + DD_LOGS_INJECTION: true + DD_TAGS: tagA:valueA tagB:valueB + DD_EXTRA_TAGS: tagC:valueC tagD:valueD + DD_SERVICE: integration-test-service + + log-python: + runtime: python3.8 + handler: datadog_lambda.handler.handler + layers: + - arn:aws:lambda:${self:provider.region}:464622532012:layer:Datadog-Python38:${env:PYTHON_LAYER_VERSION} + - {Ref: RecorderExtensionLambdaLayer} + - {Ref: DatadogExtensionIntegrationTestLambdaLayer} + environment: + DD_ENHANCED_METRICS: false DD_LOG_LEVEL: ERROR DD_LOGS_ENABLED: true DD_SERVERLESS_LOGS_ENABLED: true DD_LOGS_INJECTION: true DD_TAGS: tagA:valueA tagB:valueB DD_EXTRA_TAGS: tagC:valueC tagD:valueD + DD_LAMBDA_HANDLER: src/logPython.log + DD_SERVICE: integration-test-service \ No newline at end of file diff --git a/integration_tests/snapshots/enhanced-metric-node b/integration_tests/snapshots/enhanced-metric-node new file mode 100644 index 00000000..d30a6b2b --- /dev/null +++ b/integration_tests/snapshots/enhanced-metric-node @@ -0,0 +1,10 @@ +[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:false","datadog_lambda:vX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","runtime:nodejs14.x","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","runtime:nodejs14.x","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/enhanced-metric-python b/integration_tests/snapshots/enhanced-metric-python new file mode 100644 index 00000000..b569435d --- /dev/null +++ b/integration_tests/snapshots/enhanced-metric-python @@ -0,0 +1,10 @@ +[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:false","datadog_lambda:vX.X.X","dd_lambda_layer:datadog-pythonX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","runtime:python3.8","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_lambda_layer:datadog-pythonX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","runtime:python3.8","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-pythonX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-pythonX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/enhancedMetricTest b/integration_tests/snapshots/enhancedMetricTest deleted file mode 100644 index 53ada981..00000000 --- a/integration_tests/snapshots/enhancedMetricTest +++ /dev/null @@ -1,10 +0,0 @@ -[sketch] {"metric":"aws.lambda.enhanced.billed_duration","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.duration","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.init_duration","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.invocations","tags":["account_id:601427279990","aws_account:601427279990","cold_start:false","datadog_lambda:vX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedMetricTest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","memorysize:1024","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-enhancedMetricTest","resource:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","runtime:nodejs12.x","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":"XXX","cnt":"1","min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.invocations","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedMetricTest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","memorysize:1024","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-enhancedMetricTest","resource:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","runtime:nodejs12.x","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":"XXX","cnt":"1","min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.memorysize","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"serverless.lambda-extension.integration-test.count","tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":"XXX","cnt":"1","k":[XXX],"n":[1]}]} -[sketch] {"metric":"serverless.lambda-extension.integration-test.count","tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-enhancedmetrictest","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued"],"dogsketches":[{"ts":"XXX","cnt":"1","min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/log-node b/integration_tests/snapshots/log-node new file mode 100644 index 00000000..2d4c1924 --- /dev/null +++ b/integration_tests/snapshots/log-node @@ -0,0 +1,6 @@ +[log] {"message":{"message":"START XXX"}} +[log] {"message":{"message":"XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node","service":"integration-test-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} +[log] {"message":{"message":"XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node","service":"integration-test-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} +[log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node","service":"integration-test-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} +[log] {"message":{"message":"END XXX"}} +[log] {"message":{"message":"REPORT XXX"}} diff --git a/integration_tests/snapshots/log-python b/integration_tests/snapshots/log-python new file mode 100644 index 00000000..91123c69 --- /dev/null +++ b/integration_tests/snapshots/log-python @@ -0,0 +1,6 @@ +[log] {"message":{"message":"START XXX"}} +[log] {"message":{"message":"XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python","service":"integration-test-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} +[log] {"message":{"message":"XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python","service":"integration-test-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} +[log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python","service":"integration-test-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} +[log] {"message":{"message":"END XXX"}} +[log] {"message":{"message":"REPORT XXX"}} diff --git a/integration_tests/snapshots/logTest b/integration_tests/snapshots/logTest deleted file mode 100644 index 5bbbeb3a..00000000 --- a/integration_tests/snapshots/logTest +++ /dev/null @@ -1,13 +0,0 @@ -[log] {"message":{"message":"START XXX"}} -[log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} -[log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} -[log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} -[log] {"message":{"message":"HTTP XXX"}} -[log] {"message":{"message":"XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} -[log] {"message":{"message":"XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} -[log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} -[log] {"message":{"message":"HTTP XXX"}} -[log] {"message":{"message":"POST /api/v1/series?api_key=NO_NEED_TO_BE_VALID\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} -[log] {"message":{"message":"POST /api/v1/check_run?api_key=NO_NEED_TO_BE_VALID\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,functionname:integration-tests-lambda-extension-XXXXXX-logtest,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,resource:integration-tests-lambda-extension-XXXXXX-logtest,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued"} -[log] {"message":{"message":"END XXX"}} -[log] {"message":{"message":"REPORT XXX"}} diff --git a/integration_tests/snapshots/no-enhanced-metric-node b/integration_tests/snapshots/no-enhanced-metric-node new file mode 100644 index 00000000..5dba4f42 --- /dev/null +++ b/integration_tests/snapshots/no-enhanced-metric-node @@ -0,0 +1,2 @@ +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-no-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-no-enhanced-metric-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-no-enhanced-metric-node"],"dogsketches":[{"ts":XXX,"cnt":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-no-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-no-enhanced-metric-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-no-enhanced-metric-node"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/no-enhanced-metric-python b/integration_tests/snapshots/no-enhanced-metric-python new file mode 100644 index 00000000..c3e4c9a2 --- /dev/null +++ b/integration_tests/snapshots/no-enhanced-metric-python @@ -0,0 +1,2 @@ +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-pythonX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-no-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-no-enhanced-metric-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-no-enhanced-metric-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-pythonX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-no-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-no-enhanced-metric-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-no-enhanced-metric-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/noEnhancedMetricTest b/integration_tests/snapshots/noEnhancedMetricTest deleted file mode 100644 index 5a4857af..00000000 --- a/integration_tests/snapshots/noEnhancedMetricTest +++ /dev/null @@ -1,2 +0,0 @@ -[sketch] {"metric":"serverless.lambda-extension.integration-test.count","tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-noenhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-noenhancedmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-noenhancedmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","k":[XXX],"n":[1]}]} -[sketch] {"metric":"serverless.lambda-extension.integration-test.count","tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-noenhancedmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-noenhancedmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-noenhancedmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/timeout-node b/integration_tests/snapshots/timeout-node new file mode 100644 index 00000000..fe4689be --- /dev/null +++ b/integration_tests/snapshots/timeout-node @@ -0,0 +1,12 @@ +[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","runtime:nodejs14.x"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","runtime:nodejs14.x"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.timeouts","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:false","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.timeouts","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node"],"dogsketches":[{"ts":XXX,"cnt":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node"],"dogsketches":[{"ts":XXX,"cnt":1,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/timeout-python b/integration_tests/snapshots/timeout-python new file mode 100644 index 00000000..8bbf3433 --- /dev/null +++ b/integration_tests/snapshots/timeout-python @@ -0,0 +1,12 @@ +[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_lambda_layer:datadog-pythonX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python","runtime:python3.8"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_lambda_layer:datadog-pythonX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python","runtime:python3.8"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.timeouts","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:false","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.timeouts","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-pythonX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-pythonX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-python","functionname:integration-tests-extension-XXXXXX-timeout-python","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-python"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/timeoutMetricTest b/integration_tests/snapshots/timeoutMetricTest deleted file mode 100644 index fe149393..00000000 --- a/integration_tests/snapshots/timeoutMetricTest +++ /dev/null @@ -1,12 +0,0 @@ -[sketch] {"metric":"aws.lambda.enhanced.billed_duration","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.duration","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.init_duration","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.invocations","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutMetricTest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","memorysize:1024","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutMetricTest","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","runtime:nodejs12.x"],"dogsketches":[{"ts":"XXX","cnt":"1","min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.invocations","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutMetricTest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","memorysize:1024","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutMetricTest","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","runtime:nodejs12.x"],"dogsketches":[{"ts":"XXX","cnt":"1","min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.memorysize","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.timeouts","tags":["account_id:601427279990","aws_account:601427279990","cold_start:false","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.timeouts","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"serverless.lambda-extension.integration-test.count","tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","k":[XXX],"n":[1]}]} -[sketch] {"metric":"serverless.lambda-extension.integration-test.count","tags":["account_id:601427279990","aws_account:601427279990","dd_lambda_layer:datadog-nodevX.X.X","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","functionname:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest","region:sa-east-1","resource:integration-tests-lambda-extension-XXXXXX-timeoutmetrictest"],"dogsketches":[{"ts":"XXX","cnt":"1","k":[XXX],"n":[1]}]} diff --git a/integration_tests/src/logPython.py b/integration_tests/src/logPython.py new file mode 100644 index 00000000..19c3e0bf --- /dev/null +++ b/integration_tests/src/logPython.py @@ -0,0 +1,12 @@ +import logging + +logger = logging.getLogger(__name__) + +def log(event, context): + logger.error("XXX LOG 0 XXX") + logger.error("XXX LOG 1 XXX") + logger.error("XXX LOG 2 XXX") + return { + "statusCode": 200, + "body": "ok" + } \ No newline at end of file diff --git a/integration_tests/src/metricPython.py b/integration_tests/src/metricPython.py new file mode 100644 index 00000000..4240edd7 --- /dev/null +++ b/integration_tests/src/metricPython.py @@ -0,0 +1,19 @@ +import time +from random import random + +from datadog_lambda.metric import lambda_metric + +def metric(event, context): + lambda_metric(metric_name='serverless.lambda-extension.integration-test.count' + str(random()), value=1) + return { + "statusCode": 200, + "body": "ok" + } + +def timeout(event, context): + lambda_metric(metric_name='serverless.lambda-extension.integration-test.count' + str(random()), value=1) + time.sleep(15 * 60) + return { + "statusCode": 200, + "body": "ok" + } diff --git a/integration_tests/toto b/integration_tests/toto deleted file mode 100644 index 04db9c15..00000000 --- a/integration_tests/toto +++ /dev/null @@ -1 +0,0 @@ -[log] {"message":{"message":"START XXX"}} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","service":"integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"XXX"} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","service":"integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"XXX"} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","service":"integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"XXX"} [log] {"message":{"message":"HTTP XXX"}} [log] {"message":{"message":"XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","service":"integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"XXX"} [log] {"message":{"message":"XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","service":"integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"XXX"} [log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","service":"integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"XXX"} [log] {"message":{"message":"HTTP XXX"}} [log] {"message":{"message":"POST /api/v1/series?api_key=NO_NEED_TO_BE_VALID\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","service":"integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"XXX"} [log] {"message":{"message":"POST /api/v1/check_run?api_key=NO_NEED_TO_BE_VALID\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","request_id":"XXX"}},"status":"info","timestamp":XXX,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-XXXXXX-logtest","service":"integration-tests-lambda-extension-XXXXXX-logtest","ddsource":"lambda","ddtags":"XXX"} [log] {"message":{"message":"END XXX"}} [log] {"message":{"message":"REPORT XXX"}} diff --git a/integration_tests/toto2 b/integration_tests/toto2 deleted file mode 100644 index 80770ec1..00000000 --- a/integration_tests/toto2 +++ /dev/null @@ -1 +0,0 @@ -START RequestId: c707c6cf-294a-47cd-a899-7ae31af0fb3b Version: $LATEST LOGS Name: datadog-agent State: Subscribed Types: [platform,function,extension] EXTENSION Name: a_recorder State: Ready Events: [SHUTDOWN] EXTENSION Name: datadog-agent State: Ready Events: [INVOKE,SHUTDOWN] HTTP GET http://127.0.0.1:8124/lambda/hello Headers: ["content-type:application/json","x-datadog-parent-id:14901180866954581720","x-datadog-sampling-priority:2","x-datadog-trace-id:1329566964639495238"] 2021-06-09 13:26:29.760 (-04:00) c707c6cf-294a-47cd-a899-7ae31af0fb3b ERROR [dd.trace_id=1329566964639495238 dd.span_id=14901180866954581720] XXX LOG 0 XXX 2021-06-09 13:26:29.760 (-04:00) c707c6cf-294a-47cd-a899-7ae31af0fb3b ERROR [dd.trace_id=1329566964639495238 dd.span_id=14901180866954581720] XXX LOG 1 XXX 2021-06-09 13:26:29.760 (-04:00) c707c6cf-294a-47cd-a899-7ae31af0fb3b ERROR [dd.trace_id=1329566964639495238 dd.span_id=14901180866954581720] XXX LOG 2 XXX HTTP POST http://127.0.0.1:8124/lambda/flush Headers: ["content-type:application/json","x-datadog-parent-id:14901180866954581720","x-datadog-sampling-priority:2","x-datadog-trace-id:1329566964639495238"] [sketch] {"metric":"aws.lambda.enhanced.invocations","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","datadog_lambda:v3.55.0","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","functionname:integration-tests-lambda-extension-a10b87da-logTest","functionname:integration-tests-lambda-extension-a10b87da-logtest","memorysize:1024","region:sa-east-1","resource:integration-tests-lambda-extension-a10b87da-logTest","resource:integration-tests-lambda-extension-a10b87da-logtest","runtime:nodejs12.x"],"dogsketches":[{"ts":"1623259580","cnt":"1","min":1,"max":1,"avg":1,"sum":1,"k":[1338],"n":[1]}]} POST /api/v1/series?api_key=NO_NEED_TO_BE_VALID POST /api/v1/check_run?api_key=NO_NEED_TO_BE_VALID END RequestId: c707c6cf-294a-47cd-a899-7ae31af0fb3b REPORT RequestId: c707c6cf-294a-47cd-a899-7ae31af0fb3b Duration: 189.05 ms Billed Duration: 190 ms Memory Size: 1024 MB Max Memory Used: 171 MB Init Duration: 1276.96 ms XRAY TraceId: 1-60c0f9c4-087c90f41273921c286e7446 SegmentId: 7b31fdbd48b1f75b Sampl START RequestId: 665493c3-71b9-44a1-8369-0fd4687eb755 Version: $LATEST 2021-06-09 13:26:32.335 (-04:00) 665493c3-71b9-44a1-8369-0fd4687eb755 ERROR [dd.trace_id=6684379871923855841 dd.span_id=3433469599897276131] XXX LOG 0 XXX 2021-06-09 13:26:32.335 (-04:00) 665493c3-71b9-44a1-8369-0fd4687eb755 ERROR [dd.trace_id=6684379871923855841 dd.span_id=3433469599897276131] XXX LOG 1 XXX 2021-06-09 13:26:32.336 (-04:00) 665493c3-71b9-44a1-8369-0fd4687eb755 ERROR [dd.trace_id=6684379871923855841 dd.span_id=3433469599897276131] XXX LOG 2 XXX HTTP POST http://127.0.0.1:8124/lambda/flush Headers: ["content-type:application/json","x-datadog-parent-id:3433469599897276131","x-datadog-sampling-priority:2","x-datadog-trace-id:6684379871923855841"] [sketch] {"metric":"aws.lambda.enhanced.billed_duration","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","functionname:integration-tests-lambda-extension-a10b87da-logtest","region:sa-east-1","resource:integration-tests-lambda-extension-a10b87da-logtest"],"dogsketches":[{"ts":"1623259580","cnt":"1","min":0.19,"max":0.19,"avg":0.19,"sum":0.19,"k":[1231],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.duration","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","functionname:integration-tests-lambda-extension-a10b87da-logtest","region:sa-east-1","resource:integration-tests-lambda-extension-a10b87da-logtest"],"dogsketches":[{"ts":"1623259580","cnt":"1","min":0.18905000000000002,"max":0.18905000000000002,"avg":0.18905000000000002,"sum":0.18905000000000002,"k":[1231],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.estimated_cost","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","functionname:integration-tests-lambda-extension-a10b87da-logtest","region:sa-east-1","resource:integration-tests-lambda-extension-a10b87da-logtest"],"dogsketches":[{"ts":"1623259580","cnt":"1","min":0.000003366673,"max":0.000003366673,"avg":0.000003366673,"sum":0.000003366673,"k":[525],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.init_duration","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","functionname:integration-tests-lambda-extension-a10b87da-logtest","region:sa-east-1","resource:integration-tests-lambda-extension-a10b87da-logtest"],"dogsketches":[{"ts":"1623259580","cnt":"1","min":1.27696,"max":1.27696,"avg":1.27696,"sum":1.27696,"k":[1354],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.invocations","tags":["account_id:601427279990","aws_account:601427279990","cold_start:false","datadog_lambda:v3.55.0","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","functionname:integration-tests-lambda-extension-a10b87da-logTest","functionname:integration-tests-lambda-extension-a10b87da-logtest","memorysize:1024","region:sa-east-1","resource:integration-tests-lambda-extension-a10b87da-logTest","resource:integration-tests-lambda-extension-a10b87da-logtest","runtime:nodejs12.x"],"dogsketches":[{"ts":"1623259590","cnt":"1","min":1,"max":1,"avg":1,"sum":1,"k":[1338],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.max_memory_used","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","functionname:integration-tests-lambda-extension-a10b87da-logtest","region:sa-east-1","resource:integration-tests-lambda-extension-a10b87da-logtest"],"dogsketches":[{"ts":"1623259580","cnt":"1","min":171,"max":171,"avg":171,"sum":171,"k":[1670],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.memorysize","tags":["account_id:601427279990","aws_account:601427279990","cold_start:true","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","functionname:integration-tests-lambda-extension-a10b87da-logtest","region:sa-east-1","resource:integration-tests-lambda-extension-a10b87da-logtest"],"dogsketches":[{"ts":"1623259580","cnt":"1","min":1024,"max":1024,"avg":1024,"sum":1024,"k":[1785],"n":[1]}]} POST /api/v1/series?api_key=NO_NEED_TO_BE_VALID [log] {"message":{"message":"START RequestId: c707c6cf-294a-47cd-a899-7ae31af0fb3b Version: $LATEST","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259588910,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589709,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589709,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589709,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"HTTP GET http://127.0.0.1:8124/lambda/hello Headers: [\"content-type:application/json\",\"x-datadog-parent-id:14901180866954581720\",\"x-datadog-sampling-priority:2\",\"x-datadog-trace-id:1329566964639495238\"]\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589719,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"2021-06-09T17:26:29.760Z\tc707c6cf-294a-47cd-a899-7ae31af0fb3b\tERROR\t[dd.trace_id=1329566964639495238 dd.span_id=14901180866954581720] XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589760,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"2021-06-09T17:26:29.760Z\tc707c6cf-294a-47cd-a899-7ae31af0fb3b\tERROR\t[dd.trace_id=1329566964639495238 dd.span_id=14901180866954581720] XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589760,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"2021-06-09T17:26:29.760Z\tc707c6cf-294a-47cd-a899-7ae31af0fb3b\tERROR\t[dd.trace_id=1329566964639495238 dd.span_id=14901180866954581720] XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589760,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"HTTP POST http://127.0.0.1:8124/lambda/flush Headers: [\"content-type:application/json\",\"x-datadog-parent-id:14901180866954581720\",\"x-datadog-sampling-priority:2\",\"x-datadog-trace-id:1329566964639495238\"]\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589812,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"POST /api/v1/series?api_key=NO_NEED_TO_BE_VALID\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589888,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"POST /api/v1/check_run?api_key=NO_NEED_TO_BE_VALID\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589899,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"END RequestId: c707c6cf-294a-47cd-a899-7ae31af0fb3b","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589900,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} [log] {"message":{"message":"REPORT RequestId: c707c6cf-294a-47cd-a899-7ae31af0fb3b\tDuration: 189.05 ms\tBilled Duration: 190 ms\tMemory Size: 1024 MB\tMax Memory Used: 171 MB\tInit Duration: 1276.96 ms","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","request_id":"c707c6cf-294a-47cd-a899-7ae31af0fb3b"}},"status":"info","timestamp":1623259589900,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest","service":"integration-tests-lambda-extension-a10b87da-logtest","ddsource":"lambda","ddtags":"region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest,region:sa-east-1,aws_account:601427279990,account_id:601427279990,functionname:integration-tests-lambda-extension-a10b87da-logtest,resource:integration-tests-lambda-extension-a10b87da-logtest,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-lambda-extension-a10b87da-logtest"} POST /api/v1/check_run?api_key=NO_NEED_TO_BE_VALID END RequestId: 665493c3-71b9-44a1-8369-0fd4687eb755 REPORT RequestId: 665493c3-71b9-44a1-8369-0fd4687eb755 Duration: 71.42 ms Billed Duration: 72 ms Memory Size: 1024 MB Max Memory Used: 180 MB XRAY TraceId: 1-60c0f9c8-5ea6dda75cc3b01401cae1e1 SegmentId: 6a1553075bcbe8cc Sampled: true