Add support for multiple collector endpoints in one TelemetryManager instance

Aperta
#947 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, sqlite

Direzione di ricerca

Inizia tracciando la configurazione di TelemetryManager, l’interfaccia per l’invio degli eventi e la tabella SQLite per l’archiviazione degli eventi descritte nell’issue. Determina come il contesto dell’account e gli URL di ingestion vengano trasferiti dalla creazione dell’evento fino all’invio ritardato. Il lavoro è completato quando è possibile configurare più URL specifici per l’utente senza riavviare, gli eventi conservano il proprio contesto e ogni evento viene inviato all’URL corrispondente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

design enhancement iOS
Current library state and problem statement:

Multi user scenario implies that a number of users (greater that 1) can make and receive a Call during 1C3 communication stack life time without library being restarted.

One of the user-dependent context information in case of user being part of restricted/geo-locked cloud may be Telemetry ingestion URL, which must be different from regular production URL due to privacy/security requirements for specific cloud.

Problem statement:
Current 1DS library design allows for 2 ways of configuring ingestion URL;
-At library start , either using defaults or override provided via Setup key.
-At runtime, using ECS configuration.

Main issue with both methods is that the URL is set globally for all events, the ones cached from previous sessions and currently received ones.
Given that events may not be sent immediately but rather could be stored into data base for later processing and sending, there is no guarantee that event stored at any time will be sent with the URL that matches the user context.

In short, current telemetry event do not carry enough user context, they need to respect the user context they were created with.

Additionally, it should be possible to configure ingestion URL-s according to user context without restarting IC3 communications library.

Proposed changes:

Per-user ingestion URL-s

Library needs to have a notion of storing multiple ingestion URLs together with an account/user context.
<std::pair<std::string: Account, std:string URL>>

Event stamping with user context

Event post interface needs to be updated with contextID field, which will represent the account/user context in which event needs to be sent.
Library will add correct ingestion URL to event payload by matching account ID with appropriate URL obtained from configuration.
At event sending time, URL will be read from event properties instead of configuration. This will require SQLite schema change in order to add new field to event storage table.

Lingua principale
C
Stelle
102
Fork
66
Merge medio
3g 10h
PR unite (30g)
10

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/cpp_client_telemetry

Tutte le issue di microsoft/cpp_client_telemetry

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.