amplitude / amplitude/Amplitude-TypeScript

React-native Drop plugin throws error

Aberta
#493 0 comentários 0 reações 0 responsáveis Ver no GitHub
bug
Linguagem predominante
TypeScript
Estrelas
180
Forks
68
Merge médio
3d 1h
PRs com merge (30d)
29

Descrição

## 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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.