Как настроить Datadog с помощью среды выполнения Google App Engine node.js? - PullRequest
0 голосов
/ 01 октября 2018

Согласно репозиторию gae_datadog Github , способ настроить datadog в движке приложения - клонировать репо и добавить следующее в app.yaml:

handlers:
# Should probably be at the beginning of the list
# so it's not clobbered by a catchall route
- url: /datadog
  script: gae_datadog.datadog.app

env_variables:
    DATADOG_API_KEY: 'YOURAPIKEY'

Однакопохоже, это не работает с их средой выполнения nodejs.Вот мой app.yaml:

# Copyright 2017, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# [START app_yaml]
handlers:
    # Should probably be at the beginning of the list
    # so it's not clobbered by a catchall route
    - url: /datadog
      script: gae_datadog.datadog.app

env_variables:
    DATADOG_API_KEY: 'MY_KEY'

runtime: nodejs
env: flex
# [END app_yaml]

Кажется, что обработчик URL-адреса datadog вообще не используется, потому что он 404. Я предполагаю, что приложение node.js имеет преимущество, но я незнаю, как это изменить.

...