Location
- File:
plexus/utils/scoring.py
- Line: 26
- Current Code:
cloudwatch_logger = CloudWatchLogger(namespace="CallCriteria/API")
Problem
The CloudWatch logger is initialized with a client-specific namespace "CallCriteria/API". This references the old client name and should be generalized for multi-tenant use.
Solution Options
- Environment Variable: Create
PLEXUS_CLOUDWATCH_NAMESPACE environment variable (e.g., "Plexus/API")
- Configuration: Add to Plexus configuration system via
plexus.cloudwatch.namespace config property
- Hardcode Generic: Use a generic namespace like
"Plexus/API" or "Plexus/Scoring"
Next Steps
- Decide which approach fits Plexus architecture best
- Implement the chosen solution
- Update
plexus/utils/scoring.py to use the new approach
- Test CloudWatch logs are properly namespaced
Context
This is part of the broader effort to remove all client-specific "Call Criteria" branding from codebase.
Location
plexus/utils/scoring.pyProblem
The CloudWatch logger is initialized with a client-specific namespace
"CallCriteria/API". This references the old client name and should be generalized for multi-tenant use.Solution Options
PLEXUS_CLOUDWATCH_NAMESPACEenvironment variable (e.g.,"Plexus/API")plexus.cloudwatch.namespaceconfig property"Plexus/API"or"Plexus/Scoring"Next Steps
plexus/utils/scoring.pyto use the new approachContext
This is part of the broader effort to remove all client-specific "Call Criteria" branding from codebase.