#tracing #distributed-tracing #utilities #up #google #sync #notion

opentelemetry-tracing-utils

Some opinionated useful utilities for setting up otel tracing in Rust

4 releases (breaking)

0.4.0 Mar 15, 2024
0.3.0 Jan 5, 2024
0.2.0 Jan 4, 2024
0.1.0 Dec 23, 2023

#537 in Debugging

Download history 24/week @ 2024-01-02 7/week @ 2024-02-13 93/week @ 2024-02-20 52/week @ 2024-02-27 13/week @ 2024-03-05 130/week @ 2024-03-12 14/week @ 2024-03-19 10/week @ 2024-03-26 28/week @ 2024-04-02

184 downloads per month

AGPL-3.0-or-later

19KB
320 lines


Uses Just (see the justfile) for running scripts etc.

https://eu-west-2.console.aws.amazon.com/dynamodbv2/home?region=eu-west-2#item-explorer?initialTagKey=&table=tasks

DB Design

The DB just stores sync settings and refresh tokens.

DB Schema

PK Attributes
userId SK type (GSI-1-PK) data (GSI-1-SK)
firebase auth user id
userDetails type data notionBotId googleRefreshToken notionAccessToken other stuff
userDetailsACTIVE or INACTIVEnotionB#bot_id asdfasefa asdfasefa workspace name, workspace emoji, etc.
sync#0 typedata (next sync timestamp)last syncnotionDatabasegoogleCalendarnotionDBProps
syncSCHEDULED#2007-04-05T14:30Z
or DISABLED
or ERROR
LAST#2007-04-05T14:30Zasdfaseasdf3
{"notionTitleId":{"S":"title"},"notionDoneId":{"S":"O%7CaE"}}

GSI-1 will be:

type (e.g. userDetails)data

This should allow sorting all active syncs (e.g. 'sync' + startsWith 'SCHEDULED#') and other useful queries.

Probably doesn't need rows for items. Maybe they can all just be stored in memory.

https://eu-west-2.console.aws.amazon.com/dynamodbv2/home?region=eu-west-2#item-explorer?initialTagKey=&table=tasks

https://console.firebase.google.com/project/notion-sync-tools/authentication/users

Notion Integration

https://www.notion.so/my-integrations/public/f8014299c7f64cac8315d858c2aab2c8

Postman Workspace

https://web.postman.co/workspace/fe759fe4-0286-4679-860f-6dc84d8af0fc

k8s infra

Deployed to Oracle kubernetes cluster.

https://github.com/SG60/EventSpider-infrastructure-config

Dependencies

~15–25MB
~320K SLoC