Comments (2)
push response logging "closer" to where we receive the response (Step function, service, or somewhere else?). We'll be able to link log lines for an action pipeline as long as we correlate them with our rid field
If we end up doing this, I don't know what the best pattern would be. Maybe both places? Like, log lines could look something like:
jbi.steps, DEBUG, "executing step `create_issue` for action abc" (extra has action_context, including rid)
jbi.services.jira, DEBUG, "creating issue for Bugzilla bug 123456" (extra has action_context, including rid, request body)
jbi.services.jira, DEBUG, "Issue JBI-123 created for Bugzilla bug 123456" (extra has action_context, including rid, response body)
jbi.steps, DEBUG, executing step `add_link_to_bugzilla` for action abc
...
from jira-bugzilla-integration.
don't return anything from the /bugzilla_webhook endpoint (only a 200 response)
follow this chain all the way down, and don't return anything from functions where we don't meaningfully use the return value
+1, as long as testing remains straightforward, sort of functional style
push response logging "closer" to where we receive the response (Step function, service,)
[...]
as long as we correlate them with our rid field
+1
Make sure we document well how to track a request (eg. examples of log explorer queries)
If we end up doing this, I don't know what the best pattern would be. Maybe both places?
I think we can log in both places, and use a different log level for example. For example, steps as INFO and services as DEBUG, or logs announcing sending of request as DEBUG and logs with response as INFO.
When I see the amount of logs per minute that the gke clusters produces, I don't want to feel bad having too much log. Unless it becomes an issue when troubleshooting, but I don't we're there yet.
Note that I think that last time I looked no DEBUG log was published in prod
from jira-bugzilla-integration.
Related Issues (20)
- `resolution` not set on creation
- Update docs around steps available HOT 2
- `Failed to parse events for bug XYZ`: offset-naive and offset-aware datetimes error
- Add more context fields to queue exception logs
- Add endpoint to introspect queue
- Unused methods in queue
- How to handle invalid webhook payloads?
- HTTPError entries in queue do not provide insighful details
- Webhook event lost when Bugzilla is down
- Queue dockerflow check error
- Synchronize past comments
- Pandoc does not render bullets points correctly in Jira
- Field value of `Fields.event.time` and `bug.creation_time` in logs are received as `datetime.datetime(2024, 4, 9, 15, 39, 56)` instead of ISO format HOT 3
- Logging with field `operation="ignore"` is confusing
- Adding a patch on Bugzilla creates a meaningless comment on Jira HOT 5
- JBI slash escaping some characters when sending summary field data into Jira
- Store request id in DL queue item
- retry job logger is called `__main__` instead of "retry"
- Sync Cloud Services::Operations: Autgraph with AUT HOT 1
- Conversion of truncated markdown to Jira can leed to error `exceeds the allowed limit of 32,767 characters.`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jira-bugzilla-integration.