Commit Graph

102 Commits

Author SHA1 Message Date
e38171e53d fix(tracing): wrong attribute type
changed attribute types in to Int
2024-08-12 11:53:48 +02:00
7cf51f9b90 fix(tracing): wrong attribute type
changed attribute types in to Int
2024-08-12 11:53:17 +02:00
9d9b354698 fix(tracing): wrong attribute type
changed attribute types in to Int
2024-08-12 11:52:53 +02:00
ae7bc131f7 refactor(tracing): tracing & logging
added the custom util functions to handel telemetry
2024-08-12 11:50:45 +02:00
135e09ea8e refactor(tracing): tracing & logging
added the custom util functions to handel telemetry
2024-08-12 11:46:53 +02:00
24d51a3751 refactor(tracing): tracing & logging
added the custom util functions to handel telemetry
2024-08-12 11:39:22 +02:00
d994ead6f6 refactor(tracing): tracing & logging
added the custom util functions to handel telemetry
2024-08-12 11:36:34 +02:00
4d262c8fff refactor(tracing): tracing & logging
added the custom util functions to handel telemetry
2024-08-12 11:32:53 +02:00
ffc3164cb7 refactor(tracing): tracing & logging
added the custom util functions to handel telemetry
2024-08-12 11:17:02 +02:00
9512cd10bc feat(tracing): Add utils for OpenTelemetry tracing and event logging 2024-08-12 11:15:34 +02:00
505bc3b522 feat(tracing): Refactor error handling to include trace status update 2024-08-12 11:15:21 +02:00
99ea2d37ab chore(refactor): removed dead code 2024-08-12 11:14:53 +02:00
3f92bdb325 feat(tracing): Add tracing, logging, and error handling to tagGroup database functions 2024-08-12 10:07:42 +02:00
098ecda869 chore(tracing): Rename "tag_count" to "tag_aliases_count" 2024-08-12 10:07:29 +02:00
ca1e1a1da5 feat(tracing): added tracing 2024-08-12 09:58:14 +02:00
6bec8e3373 chore(tracing): Update log field names for clarity 2024-08-12 09:57:31 +02:00
c17b78cc48 refactor(logging): Refactor error handling in CreateTag, CreateTagInBatch, and DeleteTag functions
Some checks failed
Gitea Build Check / Build (push) Failing after 29s
Improve error handling in the CreateTag, CreateTagInBatch, and DeleteTag functions by utilizing a new utility function. Simplify logging and error management, ensuring more consistent error responses throughout these operations.
2024-08-11 22:34:53 +02:00
4707ea3f00 feat(error): Add error handling utility function
Implement the HandleError function in the new error.go file to streamline error logging and tracing. Include necessary imports for context, logrus, and OpenTelemetry tracing.
2024-08-11 22:34:28 +02:00
bb64c08185 chore(dependencies): updated dependencies
Some checks failed
Gitea Build Check / Build (push) Failing after 30s
2024-08-11 22:17:40 +02:00
a368f59234 feat(telemetry): Implement OpenTelemetry tracing and logging in tag management functions 2024-08-11 22:17:24 +02:00
2d9db01d72 feat(telemetry): Implement telemetry setup in database client
Add OpenTelemetry integration to the database client by creating a `setupTelemetry` function. Initialize a tracer and configure logging with the otellogrus hook. Call this function during the connection process to enable tracing and logging for database operations.
2024-08-11 22:17:00 +02:00
e839e7ba2a feat(database): return gorm itself
Some checks failed
Gitea Build Check / Build (push) Failing after 28s
2024-08-11 00:26:20 +02:00
9fe2d0edc3 fix(database): make function more coherent with the rest
Some checks failed
Gitea Build Check / Build (push) Failing after 29s
2024-08-11 00:24:02 +02:00
46e6cdfa52 feat(database): added user 2024-08-11 00:23:47 +02:00
2b54f25eea feat(database): added all missing functions 2024-08-11 00:13:46 +02:00
1dc9b1fb7c feat(database): favorites
Some checks failed
Gitea Build Check / Build (push) Failing after 27s
- Added functionality
2024-08-09 22:47:02 +02:00
7720110a0a refactor: Update validation error messages for clarity and consistency 2024-08-09 22:45:25 +02:00
b6c037cb22 refactor: Refactor UserFavorites model to UserFavorite for clarity and consistency
- Rename `UserFavorites` struct to `UserFavorite`
- Update the `TableName` method to reflect the new struct name
2024-08-09 22:45:12 +02:00
3e13046706 fix(query): added conditions
added the condition for the id
2024-08-09 22:44:55 +02:00
85d7905e8a refactor: renamed variables
- Update model references from `UserFavorites` to `UserFavorite` in multiple files.
- Adjust database queries and struct definitions accordingly to maintain consistency.
2024-08-09 22:43:58 +02:00
f798869ef5 feat(database): implementation of functions
Some checks failed
Gitea Build Check / Build (push) Failing after 28s
- Added functionality
- Add connection checks to `CreateUserSource`, `UpdateUserSource`, `GetUserSourceByID`, and `DeleteUserSource` functions.
- Introduce validation for empty and improperly formatted IDs in `UpdateUserSource`, `GetUserSourceByID`, and `DeleteUserSource`.
- Handle duplicate key errors and record not found errors with appropriate custom error messages.
2024-08-09 22:16:03 +02:00
598ca747eb refactor(types): using correct types 2024-08-09 22:14:56 +02:00
b8e29de4fc refactor(error): error handling in database package
- Replace custom error types with string constants for common database errors.
- Simplify the Database struct to include a Reason field for error messages.
- Update Error method to format the error output using the Reason.
- Modify validation error constants for consistency and clarity.
2024-08-09 22:14:13 +02:00
fefc777888 feat(impl): Add database client and migration functionality
Implement connection to PostgreSQL database using GORM. Embed SQL migrations and handle migration execution with logging capabilities. Define configuration structure for database settings.
2024-08-09 21:39:22 +02:00
f940f22d67 chore(impl): removed old functions
removed all old implementation of the SDK

BREAKING-CHANGE: breaks database compatibility to older SDK versions
2024-08-09 21:38:35 +02:00
0e6a8fd61e feat(database): added additional columns
added more columns

BREAKING-CHANGE: breaks database compatibility to older SDK versions
2024-08-09 21:37:54 +02:00
e62280a416 feat(database): added additional columns
added more columns

BREAKING-CHANGE: breaks database compatibility to older SDK versions
2024-08-09 21:37:27 +02:00
c2ab455d3e feat: custom query's
All checks were successful
Gitea Build Check / Build (pull_request) Successful in 2m33s
Gitea Build Check / Build (push) Successful in 2m25s
fixed function for custom query's & added a function with return
2024-07-27 20:01:06 +02:00
d364078acc fix: wrong execution
All checks were successful
Gitea Build Check / Build (push) Successful in 2m27s
Gitea Build Check / Build (pull_request) Successful in 2m32s
fixed fucntion to use Exec insted of Raw.
2024-07-27 19:49:39 +02:00
470681fd4f feat: custom query's
All checks were successful
Gitea Build Check / Build (push) Successful in 2m31s
Gitea Build Check / Build (pull_request) Successful in 2m26s
added the ability to execute custom query's
2024-07-27 19:41:41 +02:00
6aa1c2b7b6 chore: fix module path & updated dependencies 2024-07-22 11:11:48 +02:00
373d31dd15 fix: change old git urls to anthrove urls
All checks were successful
Gitea Build Check / Build (push) Successful in 5m33s
Gitea Build Check / Build (pull_request) Successful in 5m11s
2024-07-19 22:01:04 +02:00
f0acfa0bdb Merge branch 'main' into ci/gitea
All checks were successful
Gitea Build Check / Build (push) Successful in 5m15s
Gitea Build Check / Build (pull_request) Successful in 5m13s
2024-07-19 13:02:00 +00:00
49a703643d Delete testaa
Some checks failed
Gitea Build Check / Build (push) Has been cancelled
2024-07-19 12:56:36 +00:00
ee43be2626 Add testaa
Some checks failed
Gitea Build Check / Build (push) Has been cancelled
2024-07-19 12:56:21 +00:00
652b2ea716 docs: updated readme
Some checks failed
Gitea Build Check / Build (push) Has been cancelled
Gitea Build Check / Build (pull_request) Failing after 28s
2024-07-19 14:54:30 +02:00
91da9b7035 ci: removed branch main and added dev
Some checks failed
Gitea Build Check / Build (push) Has been cancelled
2024-07-19 14:45:52 +02:00
92cf00d83a ci: renamed build steps
Some checks failed
Gitea Build Check / Build (push) Has been cancelled
2024-07-19 14:40:20 +02:00
10aaf14a34 ci: disable cache
All checks were successful
Gitea Build Check / Build (push) Successful in 6m5s
2024-07-19 14:29:05 +02:00
8fe87e12df ci: added ci branch for trigger
Some checks failed
Gitea Build Check / Build (push) Failing after 4m40s
2024-07-19 14:13:31 +02:00