amplitude / amplitude/Amplitude-TypeScript

React-native Drop plugin throws error

オープン
#493 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
TypeScript
スター
180
フォーク
68
平均マージ
3日 1時間
マージ済み PR(30日)
29

説明

## Expected Behavior
Drop event plugin like in the [example](https://www.docs.developers.amplitude.com/data/sdk-plugins/#enrichment-type-plugin_1) (return null in execute) should ignore the event.

## Current Behavior
The event is dropped, but there's an error (Logger Error) without any details.

## Steps to Reproduce
```
const mockPlugin: EnrichmentPlugin = {
name: 'mock-plugin',
type: 'enrichment',
setup: async () => Promise.resolve(),
execute: async (event: Event) => {
console.debug('[metrics-react-native] droping', event)
return Promise.resolve(null)
},
}
```

## Environment
- "@amplitude/analytics-react-native": "^1.3.1",
- "@amplitude/ampli": "^1.31.5",

- Installation Method: yarn
- Browser and Version: react-native Android

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。