These 16 commits are when the Protocol Buffers files have changed:
| Commit: | 8a614d6 | |
|---|---|---|
| Author: | Sedky Haider | |
| Committer: | GitHub | |
[TT-7519] add "original_path" and "listen_path" to observability (#943) * feat(analytics): add OriginalPath and ListenPath fields to AnalyticsRecord Enables the gateway to store the original client request path (before listen path stripping and URL rewriting) alongside the existing backend path in analytics records. Step-ID: pump-us002 Co-Authored-By: Claude <noreply@anthropic.com> * Don't need to assert length, we're already asserting the presence of each field * Fix the goimports * add a test case * chore: goimports on regenerated analytics.pb.go --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Matias <83959431+mativm02@users.noreply.github.com>
| Commit: | bad4cd3 | |
|---|---|---|
| Author: | Laurentiu | |
| Committer: | GitHub | |
Tt 16809 pump generate mcp analytics (#954) * [TT-16809] Added MCP pump support for mongo, psql, hybrid, prometheus and elasticsearch * TT-16809, covereage and refactoring * TT-16809, covereage and refactoring * TT-16809, covereage and refactoring3 * trigger CI * trigger CI2 * TT-16809,excluded proto file via CI * trigger CI6 * TT-16809, gate hybrid pump MCP aggregation behind EnableMCPAggregation config flag * TT-16809, document MCP custom Prometheus metrics, mcp_only and latency_breakdown options * Revert "TT-16809, document MCP custom Prometheus metrics, mcp_only and latency_breakdown options" This reverts commit 9f340b3b31019492f43b18dc1550513048cef6a5. * TT-16809, addrssed comments * TT-16809, fix CI * TT-16809, bump gotestsum to v1.13.0 for Go 1.25 compatibility * TT-16809, fix for duplicate logging on requests made to non-mcp apis * TT-16809, fixed mcp records not being excluded in some non-mcp pumps * TT-16809,feature creep cleanup * TT-16809, fixed logs * TT-16809, fixed raw mongo pump * skip MCP records in MongoAggregatePump WriteData * add composite index on tyk_mcp_aggregated for query performance MCPSQLAggregatePump was only calling AutoMigrate without creating the (dimension, timestamp, org_id, dimension_value) composite index that SQLAggregatePump creates for tyk_aggregated. Without this index all MCP analytics SQL queries perform full table scans. Adds ensureTable and ensureIndex methods matching the regular aggregate pump, including PostgreSQL CONCURRENTLY support and the omit_index_creation config flag. * add sharded table migration for MCP SQL aggregate pump MCPSQLAggregatePump was not migrating existing sharded tables on startup, unlike SQLAggregatePump which calls HandleTableMigration and MigrateAllShardedTables. If the schema changes, existing shards would not be updated. --------- Co-authored-by: andrei-tyk <97896463+andrei-tyk@users.noreply.github.com> Co-authored-by: Andrei <andrei@tyk.io>
| Commit: | 3d5543e | |
|---|---|---|
| Author: | lghiur | |
Regenerate protobuf for MCPStats and add MCP pump unit tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| Commit: | 9984a1e | |
|---|---|---|
| Author: | Kofo Okesola | |
| Committer: | GitHub | |
[TT-9476]: add graphstats to analytics record proto (#736) * addgraphstats to analytics record proto * added proto to go serializer * add serializer * some changes to conditional addition of graphql stats * ran go imports * fix ci
The documentation is generated from this commit.
| Commit: | e0f692b | |
|---|---|---|
| Author: | Kofo Okesola | |
| Committer: | GitHub | |
[TT-6012] add ApiSchema to analytics record (#474) * add metadata to analytics record * ran go imports * remove metadata and add APISchema string * ignore field in mgo
| Commit: | 53a5457 | |
|---|---|---|
| Author: | Kofo Okesola | |
| Committer: | Kofo Okesola | |
parsing request struct
| Commit: | 47af9bd | |
|---|---|---|
| Author: | Sredny M | |
| Committer: | Tyk Bot | |
TT-4699 Feature/analytics serialization (#436) * adding gotiny serialization * adding serialization tests * adding more funcs to analytics Records * fmting * Add analytics * started to implement serializer using standard protobuf * proccesed timestamp fields * added protobuf in the loop to process analytics * update tests * fix collection name on aggregate * expose GenerateApiKeys method so we can use it for testing * implemented requested changes: error handling and optimize conditional * fix compilation issue with serializer test * update timestamp handling * fix assignation of dates * added support for cities * removed go_tiny.go * do not use copy.Copy() method and instead map the structures manually * remove all references to gotiny * move protofiles to /analytics directory * refactor, move some functions as part of analytics record struct * remove some unused code, refactor in protobuf serializer * moved functions to pump * expose GeoIPLookup * fix decoding and fix decoding tests * update deps Co-authored-by: tbuchaillot <tombuchaillot89@gmail.com> Co-authored-by: Matias Insaurralde <matias@insaurral.de> (cherry picked from commit c0bc0e2ab6a646f10a7c37e5d233eb73a90b2a7b)
| Commit: | c0bc0e2 | |
|---|---|---|
| Author: | Sredny M | |
| Committer: | GitHub | |
TT-4699 Feature/analytics serialization (#436) * adding gotiny serialization * adding serialization tests * adding more funcs to analytics Records * fmting * Add analytics * started to implement serializer using standard protobuf * proccesed timestamp fields * added protobuf in the loop to process analytics * update tests * fix collection name on aggregate * expose GenerateApiKeys method so we can use it for testing * implemented requested changes: error handling and optimize conditional * fix compilation issue with serializer test * update timestamp handling * fix assignation of dates * added support for cities * removed go_tiny.go * do not use copy.Copy() method and instead map the structures manually * remove all references to gotiny * move protofiles to /analytics directory * refactor, move some functions as part of analytics record struct * remove some unused code, refactor in protobuf serializer * moved functions to pump * expose GeoIPLookup * fix decoding and fix decoding tests * update deps Co-authored-by: tbuchaillot <tombuchaillot89@gmail.com> Co-authored-by: Matias Insaurralde <matias@insaurral.de>
| Commit: | 848653c | |
|---|---|---|
| Author: | tbuchaillot | |
unary
| Commit: | cdb80d7 | |
|---|---|---|
| Author: | tbuchaillot | |
changing AnalyticsService
| Commit: | c706713 | |
|---|---|---|
| Author: | tbuchaillot | |
changing service
| Commit: | a60c5f9 | |
|---|---|---|
| Author: | tbuchaillot | |
init
| Commit: | d5a742b | |
|---|---|---|
| Author: | Tomas Buchaillot | |
| Committer: | tbuchaillot | |
Go modules (#251) ## Description Replace govendor for gomodules for dependency management. ## Related Issue Related #217 ## Motivation and Context <!-- Why is this change required? What problem does it solve? --> ## How This Has Been Tested ./ci-test.sh go build
This commit does not contain any .proto files.
| Commit: | d633223 | |
|---|---|---|
| Author: | Tomas Buchaillot | |
| Committer: | GitHub | |
Go modules (#251) ## Description Replace govendor for gomodules for dependency management. ## Related Issue Related #217 ## Motivation and Context <!-- Why is this change required? What problem does it solve? --> ## How This Has Been Tested ./ci-test.sh go build
This commit does not contain any .proto files.
| Commit: | e724bc6 | |
|---|---|---|
| Author: | Sredny M | |
| Committer: | GitHub | |
Add prefix to logs for production deployments (#171) This branch solves https://github.com/TykTechnologies/product/issues/236 was updated as well the Tyk's repos related to logs, and this should be merged in parallel with the next Pull requests as this depends and use the code contained there: - https://github.com/TykTechnologies/logrus-prefixed-formatter/pull/1 - https://github.com/TykTechnologies/logrus/pull/1 **What was done?** Forced the logger to use Colors so, the information related to the prefix is not lost when they are printed in logs files. Was written a test in _logger/init_test.go_ to check that the prefix is printed in the log file. **How was tested locally?** - Ran tyk-pump with: `go build -i && ./tyk-pump --conf ../my-pump.conf 2>&1 | logger -s -t $(basename $0)4` - From another terminal, check the latest logs: `journalctl -f` - Checked that we have now the prefix printed in logs with no TTY:  **About the test** Consist in writting the logs in a file, after that we check if the logs contains the word "prefix" is so, then it Pass, otherwise its a Failed test
| Commit: | b7eaa75 | |
|---|---|---|
| Author: | dencoded | |
| Committer: | Leonid Bugaev | |
Hybrid pump (#83) added changes for https://github.com/TykTechnologies/tyk-pump/issues/80 the same idea - just specify new `"hybrid"` pump in config and will start purging analytics to RPC stack.