Open11
honeycombの導入をしてみる

- なんでhoneycomb?
- 比較記事で進められていた
- https://zenn.dev/sumiren/articles/dfe5219a272cd3
- 書籍の著者
- フリープランがある
本格導入するかは触った後決める

サイト

- free始める
- demoを予約する
- sandboxさわる
ができるっぽい

コンセプト
create a Honeycomb account in the US or create a Honeycomb account in the EU. Signup is free!
サーバーがEUかUSにしかなさそう

アカウント作成
googleアカウントのOAuth
データ送信テスト
Next.js
-
browserとnodeのsdkどっちつかうんだ?
-
https://github.com/honeycombio/next-core-web-vitals-sample
サンプル
libhoneyってのつかってる?
Nestbacnend側

backend
node, nest.jsの環境
npm install --save \
@honeycombio/opentelemetry-node \
@opentelemetry/auto-instrumentations-node
import { HoneycombSDK } from '@honeycombio/opentelemetry-node';
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
// uses the HONEYCOMB_API_KEY and OTEL_SERVICE_NAME environment variables
const sdk = new HoneycombSDK({
instrumentations: [
getNodeAutoInstrumentations({
// we recommend disabling fs autoinstrumentation since it can be noisy
// and expensive during startup
// eslint-disable-next-line @typescript-eslint/naming-convention
'@opentelemetry/instrumentation-fs': {
enabled: false,
},
}),
],
});
sdk.start();
import * as _tracing from './tracing';
環境変数の設定が必要。まずは起動時に入れてみる
取得できない