Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Enhancement: Do not overwrite requestId if extra already has one #6178

Conversation

localheinz
Copy link
Member

This PR updates the Processor\RequestId so it does not overwrite a value for requestId in the extra array.

The reason I'm proposing this change is because I want to be able to pass on the requestId identifier, for example, to a Gearman worker, so I can identify log entries related to the request that started a background job.

@localheinz
Copy link
Member Author

An alternative to this PR could be the introduction of a ReferenceId processor that

  • allows for setting / retrieving a referenceId
  • is able to generate a referenceId (basically the same as the requestId) it it hasn't one set already
  • mixes in the referenceId into the extra array

Thoughts, anyone?

@Ocramius
Copy link
Member

Sorry, seems like I referenced the wrong PR from my branches... Re-opening

@Ocramius Ocramius reopened this Apr 29, 2014
@localheinz
Copy link
Member Author

Couldn't find a way to restart the build other than:

$ git commit --amend --no-edit --allow-empty && git push -f

@Ocramius Ocramius self-assigned this Jul 27, 2014
@Ocramius Ocramius added this to the 2.4.0 milestone Jul 27, 2014
@Ocramius
Copy link
Member

Since behavior is being changed quite a bit here, I'm merging this one into develop only

@Ocramius
Copy link
Member

Manually merged at @5869e9b9e90cf295fbe2bd1fc71d70e103d65d4f. Thanks @localheinz!

@Ocramius Ocramius closed this Jul 27, 2014
@localheinz localheinz deleted the feature/do-not-overwrite-request-id branch October 12, 2014 12:34
gianarb pushed a commit to zendframework/zend-log that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-log that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-log that referenced this pull request May 15, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants